summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorMichael Seifert <michaelseifert04@yahoo.de>2016-11-03 21:34:04 +0100
committerMichael Seifert <michaelseifert04@yahoo.de>2016-11-03 21:34:04 +0100
commit18a9075496407e162b1401817316932c0982ca4c (patch)
treef5568135c4c27523f1ada0830fc9e625d4e2d423 /numpy/core/numeric.py
parent94b36b557ce7d88bbfe4091c59aa376764b7047d (diff)
downloadnumpy-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.py4
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
--------