Bind a mapiteration to a particular array <blockquote>
Determine if subspace iteration is necessary. If so, 1) Fill in mit->iteraxes 2) Create subspace iterator 3) Update nd, dimensions, and size.
Subspace iteration is necessary if: arr->nd > mit->numiter </blockquote>
Need to check for index-errors somewhere.
Let's do it at bind time and also convert all <0 values to >0 here as well.
no subspace iteration needed. Finish up and Return
all indexing arrays have been converted to 0 therefore we can extract the subspace with a simple getitem call which will use view semantics
But, be sure to do it with a true array.
Expand dimensions of result
Now, we still need to interpret the ellipsis and slice objects to determine which axes the indexing arrays are referring to
The number of dimensions an ellipsis takes up
Now fill in iteraxes -- remember indexing arrays have been converted to 0's in mit->indexobj
Only expand the first ellipsis
We need to fill in the starting coordinates for the subspace
Should be slice object or another Ellipsis
Here check the indexes (now that we have iteraxes)