-
Notifications
You must be signed in to change notification settings - Fork 52
Small formatting fixes to make the spec parsable by the test suite scripts #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
cc94c38
b028deb
6b5f774
d11c21e
4edf370
d9d51aa
0009a82
499564e
844c6f6
c6bb163
312981e
cbfb6f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,11 +105,6 @@ Slice syntax must have the following defaults. Let `n` be the axis (dimension) s | |
- If `k` is greater than `0` and `j` is not provided (e.g., `0::2`), `j` must equal `n`. | ||
- If `k` is less than `0` and `i` is not provided (e.g., `:10:-2`), `i` must equal `n-1`. | ||
- If `k` is less than `0` and `j` is not provided (e.g., `0::-2`), `j` must equal `-n-1`. | ||
|
||
Using a slice to index a single array axis must adhere to the following rules. Let `n` be the axis (dimension) size. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should not be removed. Otherwise, the item defined by L113 will look like it belongs to the list ending at L107. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well that was also confusing to me. The two lists both seem like they are about the same thing (the behavior of a slice on an axis of size |
||
|
||
- If `i` equals `j`, a slice must return an empty array, whose axis (dimension) size along the indexed axis is `0`. | ||
|
||
- Indexing via `:` and `::` must be equivalent and have defaults derived from the rules above. Both `:` and `::` indicate to select all elements along a single axis (dimension). | ||
|
||
```{note} | ||
|
@@ -184,4 +179,4 @@ The result of an indexing operation (e.g., multi-axis indexing, boolean array in | |
```{note} | ||
|
||
The specified return value behavior includes indexing operations which return a single value (e.g., accessing a single element within a one-dimensional array). | ||
``` | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.