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
docs: add data-dependent shape admonition
  • Loading branch information
kgryte committed Feb 20, 2024
commit 8d7d7008f5e277192e7734614e934f244913ab35
5 changes: 5 additions & 0 deletions src/array_api_stubs/_draft/manipulation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ def repeat(
"""
Repeats elements of an array.

.. admonition:: Data-dependent output shape
:class: important

The shape of the output array for this function depend on the data values in the `repeats` array; hence, array libraries which build computation graphs (e.g., JAX, Dask, etc.) may find this function difficult to implement without knowing array values. Accordingly, such libraries may choose to omit this function. See :ref:`data-dependent-output-shapes` section for more details.

Parameters
----------
x: array
Expand Down