Skip to content

Arrays must share the same dtype in meshgrid() #298

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

Merged
merged 2 commits into from
Nov 4, 2021
Merged
Changes from all commits
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 should 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 should have the same data type as the input arrays.

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