summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjaimefrio <jaime.frio@gmail.com>2014-09-25 10:45:08 -0700
committerjaimefrio <jaime.frio@gmail.com>2014-09-25 10:49:16 -0700
commit3a0587e545e959747d9b501dbf029a4cd6576547 (patch)
treee6cb41c3c6f67240a28690241b5a6d0e8e84aa2d /doc
parentf4fa7bd2a67a577eaa72af83028adcfbc71b7fd4 (diff)
downloadnumpy-3a0587e545e959747d9b501dbf029a4cd6576547.tar.gz
ENH: Cast non-object arrays to float in np.poly
Closes #5096. Casts integer arrays to np.double, to prevent integer overflow. Object arrays are left unchanged, to allow use of arbitrary precision objects.
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.10.0-notes.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/release/1.10.0-notes.rst b/doc/release/1.10.0-notes.rst
index 553267cad..333ce2c77 100644
--- a/doc/release/1.10.0-notes.rst
+++ b/doc/release/1.10.0-notes.rst
@@ -37,6 +37,13 @@ and a bit faster.
Improvements
============
+`np.poly` now casts integer inputs to float
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+`np.poly` will now cast 1-dimensional input arrays of integer type to double
+precision floating point, to prevent integer overflow when computing the monic
+polynomial. It is still possible to obtain higher precision results by
+passing in an array of object type, filled e.g. with Python ints.
+
Changes
=======