nd m1 N − 1 where N is the number of dimensions in the underlying array. index The current 1-d index into the array.
size The total size of the underlying array.
factors This array is used in computing an N-d index from a 1-d index. It contains needed products of the dimensions.
ao A pointer to the underlying ndarray this iterator was created to represent. dataptr This member points to an element in the ndarray indicated by the index. contiguous This flag is true if the underlying array is NPY C CONTIGUOUS. It is used to simplify calculations when possible.
12.1.5 PyArrayMultiIter Type
This type provides an iterator that encapsulates the concept of broadcasting. It allows N arrays to be broadcast together so that the loop progresses in C-style contiguous fashion over the broadcasted array. The corresponding C-structure is the PyArrayMultiIterObject whose memory layout must begin any object, obj, passed in to the PyArray Broadcast(obj) function. Broadcasting is performed
size The total broadcasted size.
index The current (1-d) index into the broadcasted result.
When the flags attribute is retrieved from Python, a special builtin object of this type is constructed. This special type makes it easier to work with the different flags by accessing them as attributes or by accessing them as if the object were a dictionary with the flag names as entries.