Skip to content

Commit 7c98b00

Browse files
authored
Arrays must share the same dtype in meshgrid() (#298)
* Modify `meshgrid()` so arrays must share the same dtype * must -> should for dtype behaviour in `meshgrid()`
1 parent 8768cbb commit 7c98b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/API_specification/creation_functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Returns coordinate matrices from coordinate vectors.
320320
321321
- **arrays**: _<array>_
322322
323-
- an arbitrary number of one-dimensional arrays representing grid coordinates. Must have numeric data types.
323+
- an arbitrary number of one-dimensional arrays representing grid coordinates. Each array should have the same numeric data type.
324324
325325
- **indexing**: _str_
326326
@@ -340,7 +340,7 @@ Returns coordinate matrices from coordinate vectors.
340340
341341
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)`.
342342
343-
The returned arrays must have a numeric data type determined by {ref}`type-promotion`.
343+
Each returned array should have the same data type as the input arrays.
344344
345345
(function-ones)=
346346
### ones(shape, *, dtype=None, device=None)

0 commit comments

Comments
 (0)