10000 Add `repeat` to the specification by kgryte · Pull Request #690 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Add repeat to the specification #690

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 21 commits into from
Feb 22, 2024
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
Prev Previous commit
Next Next commit
Add guidance on flattening behavior
  • Loading branch information
8000
kgryte committed Sep 21, 2023
commit 2decb2a73c9d46c426e7ee14fedcd9c0e9c9316c
2 changes: 1 addition & 1 deletion src/array_api_stubs/_draft/manipulation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def repeat(

If ``repeats`` is an array, the array must have an integer data type.
axis: Optional[int]
the axis (dimension) along which to repeat elements. If ``axis`` is `None`, the function must repeat elements of a flattened input array ``x`` and return the result as a one-dimensional output array. Default: ``None``.
the axis (dimension) along which to repeat elements. If ``axis`` is `None`, the function must repeat elements of the flattened input array ``x`` and return the result as a one-dimensional output array. A flattened input array must be flattened in row-major, C-style order. Default: ``None``.

Returns
-------
Expand Down
0