Changes between Version 2 and Version 3 of ZeroRankArray
- Timestamp:
- 01/10/06 08:44:33 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZeroRankArray
v2 v3 1 = Zero-Rank Arrays = 1 2 Zero-rank arrays are array with shape=(). For example: 2 3 {{{ … … 6 7 () 7 8 }}} 9 10 == Indexing of Zero-Rank Arrays == 11 As of !NumPy release 0.9.3, zero-rank arrays do not support any indexing 12 {{{ 13 >>> x[...] 14 Traceback (most recent call last): 15 File "<stdin>", line 1, in ? 16 IndexError: 0-d arrays can't be indexed. 17 }}} 18 On the other hand there are several cases that make sense for rank-zero arrays. 19 20 === Ellipsis and empty tuple === 21 22 === Increasing rank with newaxis ===
