diff options
author | Michael Seifert <michaelseifert04@yahoo.de> | 2016-11-03 21:34:04 +0100 |
---|---|---|
committer | Michael Seifert <michaelseifert04@yahoo.de> | 2016-11-03 21:34:04 +0100 |
commit | 18a9075496407e162b1401817316932c0982ca4c (patch) | |
tree | f5568135c4c27523f1ada0830fc9e625d4e2d423 /numpy/core/numeric.py | |
parent | 94b36b557ce7d88bbfe4091c59aa376764b7047d (diff) | |
download | numpy-18a9075496407e162b1401817316932c0982ca4c.tar.gz |
DOC: Clarified when a copy is made in numpy.asarray [skip ci]
asarray does copy the input if the specified dtype and/or order differ
from the input even if it is an ndarray.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 82f7b081f..5cc178e02 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -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 -------- |