Skip to content

Commit

Permalink
DOC: Clarified when a copy is made in numpy.asarray [skip ci]
Browse files Browse the repository at this point in the history
asarray does copy the input if the specified dtype and/or order differ
from the input even if it is an ndarray.
  • Loading branch information
MSeifert04 committed Nov 3, 2016
1 parent 94b36b5 commit 18a9075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/core/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ def asarray(a, dtype=None, order=None):
-------
out : ndarray
Array interpretation of `a`. No copy is performed if the input
is already an ndarray. If `a` is a subclass of ndarray, a base
class ndarray is returned.
is already an ndarray with matching dtype and order. If `a` is a
subclass of ndarray, a base class ndarray is returned.
See Also
--------
Expand Down

0 comments on commit 18a9075

Please sign in to comment.