Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/API_specification/creation_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ Returns coordinate matrices from coordinate vectors.

- **arrays**: _<array>_

- an arbitrary number of one-dimensional arrays representing grid coordinates. Must have numeric data types.
- an arbitrary number of one-dimensional arrays representing grid coordinates. Each array must have the same numeric data type.

- **indexing**: _str_

Expand All @@ -342,7 +342,7 @@ Returns coordinate matrices from coordinate vectors.

Similarly, for the three-dimensional case with input one-dimensional arrays of length `M`, `N`, and `P`, if matrix indexing `ij`, then each returned array must have shape `(M, N, P)`, and, if Cartesian indexing `xy`, then each returned array must have shape `(N, M, P)`.

The returned arrays must have a numeric data type determined by {ref}`type-promotion`.
Each returned array must have the same data type as the input arrays.

(function-ones)=
### ones(shape, *, dtype=None, device=None)
Expand Down