4 .. contents :: Table of Contents
6 A ``multi_iter`` is a Python object, intended to be used as an iterator It should generally only be used in loops.
8 ``<boost/python/numpy/ufunc.hpp>`` contains the class definitions for ``multi_iter``
23 class multi_iter : public object
27 bool not_done() const;
28 char * get_data(int n) const;
29 int const get_nd() const;
30 Py_intptr_t const * get_shape() const;
31 Py_intptr_t const shape(int n) const;
35 multi_iter make_multi_iter(object const & a1);
36 multi_iter make_multi_iter(object const & a1, object const & a2);
37 multi_iter make_multi_iter(object const & a1, object const & a2, object const & a3);
49 multi_iter make_multi_iter(object const & a1);
50 multi_iter make_multi_iter(object const & a1, object const & a2);
51 multi_iter make_multi_iter(object const & a1, object const & a2, object const & a3);
53 :Returns: A Python iterator object broadcasting over one, two or three sequences as supplied
62 :Effects: Increments the iterator
66 bool not_done() const;
68 :Returns: boolean value indicating whether the iterator is at its end
72 char * get_data(int n) const;
74 :Returns: a pointer to the element of the nth broadcasted array.
78 int const get_nd() const;
80 :Returns: the number of dimensions of the broadcasted array expression
84 Py_intptr_t const * get_shape() const;
86 :Returns: the shape of the broadcasted array expression as an array of integers.
90 Py_intptr_t const shape(int n) const;
92 :Returns: the shape of the broadcasted array expression in the nth dimension.