summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorTravis E. Oliphant <teoliphant@gmail.com>2012-09-15 09:24:47 -0700
committerTravis E. Oliphant <teoliphant@gmail.com>2012-09-15 09:24:47 -0700
commitd8988abc295ef2d6cf1e3a5ffb0d766ebd4cd3a8 (patch)
tree3007243ed3c49751b3e1c61230c0bb548acbc9f3 /numpy
parent93cbc839d471e01a6cd2228f622e9908c15965df (diff)
parent5bfd65a55517e7a0af60d31e8dba6dc2f6b87df1 (diff)
downloadnumpy-d8988abc295ef2d6cf1e3a5ffb0d766ebd4cd3a8.tar.gz
Merge pull request #441 from matthew-brett/astype-doc
DOC: describe output from astype method
Diffstat (limited to 'numpy')
-rw-r--r--numpy/add_newdocs.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index a416559db..f94a6964a 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -3067,6 +3067,14 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('astype',
requirements are satisfied, the input array is returned instead
of a copy.
+ Returns
+ -------
+ arr_t : ndarray
+ Unless `copy` is False and the other conditions for returning the input
+ array are satisfied (see description for `copy` input paramter), `arr_t`
+ is a new array of the same shape as the input array, with dtype, order
+ given by `dtype`, `order`.
+
Raises
------
ComplexWarning :