The shape of the array to be iterated over. For an example, see `Arrayterator`.
(self)
| 163 | |
| 164 | @property |
| 165 | def shape(self): |
| 166 | """ |
| 167 | The shape of the array to be iterated over. |
| 168 | |
| 169 | For an example, see `Arrayterator`. |
| 170 | |
| 171 | """ |
| 172 | return tuple(((stop-start-1)//step+1) for start, stop, step in |
| 173 | zip(self.start, self.stop, self.step)) |
| 174 | |
| 175 | def __iter__(self): |
| 176 | # Skip arrays with degenerate dimensions |
no outgoing calls