From 18a9075496407e162b1401817316932c0982ca4c Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Thu, 3 Nov 2016 21:34:04 +0100 Subject: 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. --- numpy/core/numeric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/numeric.py') 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 -------- -- cgit v1.2.1