FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix a typo in a type annotation by asmeurer · Pull Request #116 · data-apis/array-api · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .md  (4) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions spec/API_specification/creation_functions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Returns a new array having a specified `shape` and filled with `fill_value`.

- output array shape.

- **fill_value**: _Union\[ int, float ] ]_
- **fill_value**: _Union\[ int, float ]_

- fill value.

Expand Down Expand Up @@ -172,7 +172,7 @@ Returns a new array filled with `fill_value` and having the same `shape` as an i

- input array from which to derive the output array shape.

- **fill_value**: _Union\[ int, float ] ]_
- **fill_value**: _Union\[ int, float ]_

- fill value.

Expand Down Expand Up @@ -222,7 +222,7 @@ Returns evenly spaced numbers over a specified interval.

- device to place the created array on, if given. Default: `None`.

- **endpoint**: _Optional\[ bool ]_
- **endpoint**: _bool_

- boolean indicating whether to include `stop` in the interval. Default: `True`.

Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Computes the matrix or vector norm of `x`.

- If `True`, the axes (dimensions) specified by `axis` must be included in the result as singleton dimensions, and, accordingly, the result must be compatible with the input array (see {ref}`broadcasting`). Otherwise, if `False`, the axes (dimensions) specified by `axis` must not be included in the result. Default: `False`.

- **ord**: _Optional\[ int, float, Literal\[ inf, -inf, 'fro', 'nuc' ] ]_
- **ord**: _Optional\[ Union\[ int, float, Literal\[ inf, -inf, 'fro', 'nuc' ] ] ]_

- order of the norm. The following mathematical norms must be supported:

Expand Down
2 changes: 1 addition & 1 deletion spec/API_specification/manipulation_functions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Joins a sequence of arrays along a new axis.

- input arrays to join. Each array must have the same shape.

- **axis**: _Optional\[ int ]_
- **axis**: _int_

- axis along which the arrays will be joined. Providing an `axis` specifies the index of the new axis in the dimensions of the result. For example, if `axis` is `0`, the new axis will be the first dimension and the output array will have shape `(N, A, B, C)`; if `axis` is `1`, the new axis will be the second dimension and the output array will have shape `(A, N, B, C)`; and, if `axis` is `-1`, the new axis will be the last dimension and the output array will have shape `(A, B, C, N)`. A valid `axis` must be on the interval `[-N, N)`, where `N` is the rank (number of dimensions) of `x`. If provided an `axis` outside of the required interval, the function must raise an exception. Default: `0`.

Expand Down
2 changes: 1 addition & 1 deletion spec/API_specification/searching_functions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Returns elements chosen from `x1` or `x2` depending on `condition`.

#### Parameters

- **condition**: _<array<bool>>_
- **condition**: _<array>_

- when `True`, yield `x1_i`; otherwise, yield `x2_i`. Must be compatible with `x1` and `x2` (see {ref}`broadcasting`).

Expand Down

Back | FazBrowse Home | New Git URL