multi_iter

class multi_iter : public boost::python::object

multi_iter はイテレータとして使う Python オブジェクトである。通常、ループ内でのみ使用する。

<boost/python/numpy/ufunc.hpp>multi_iter のクラス定義をもつ。

概要

namespace boost
{
namespace python
{
namespace numpy
{

class multi_iter : public object
{
public:
  void next();
  bool not_done() const;
  char * get_data(int n) const;
  int const get_nd() const;
  Py_intptr_t const * get_shape() const;
  Py_intptr_t const shape(int n) const;
};


multi_iter make_multi_iter(object const & a1);
multi_iter make_multi_iter(object const & a1, object const & a2);
multi_iter make_multi_iter(object const & a1, object const & a2, object const & a3);

}
}
}

コンストラクタ

multi_iter make_multi_iter(object const &a1)
multi_iter make_multi_iter(object const &a1, object const &a2)
multi_iter make_multi_iter(object const &a1, object const &a2, object const &a3)
戻り値

与えた 1 つから 3 つのシーケンスをブロードキャストする Python イテレータオブジェクト。

アクセッサ

void next()
効果

イテレータを進める。

bool not_done()
戻り値

イテレータが終端に到達したかを表す論理値。

char *get_data(int n) const
戻り値

ブロードキャストした n 番目の配列の要素へのポインタ。

int const get_nd() const
戻り値

ブロードキャストした配列式の次元数。

Py_intptr_t const *get_shape() const
戻り値

ブロードキャストした配列式の形状を表す整数配列。

Py_intptr_t const shape(int n) const
戻り値

ブロードキャストした配列式の第 n 次元の形状。