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
Prev Previous commit
Next Next commit
Shorten release note to single point
  • Loading branch information
bwalshe committed Jun 5, 2023
commit 58224647e841f4c1d5e767bf12e7f59028990104
14 changes: 0 additions & 14 deletions doc/release/upcoming_changes/23789.new_feature.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
Add copy parameter for api.reshape function.
--------------------------------------------

It is now possible to specify a copy parameter in the
Array API ``reshape`` function.

.. code-block:: python

>>> import numpy.array_api as nx
>>> array = nx.arange(10, dtype=nx.int64)
>>> other = nx.reshape(array, (2, 5), copy=True)
>>> array[:5] = -1
>>> print(other)
[[0 1 2 3 4]
[5 6 7 8 9]]