summaryrefslogtreecommitdiff
path: root/numpy/polynomial/hermite.py
diff options
context:
space:
mode:
authorRoman Yurchak <rth.yurchak@pm.me>2018-10-03 00:35:45 +0200
committerRoman Yurchak <rth.yurchak@pm.me>2018-10-03 00:41:49 +0200
commitfe76cc7fb5c598375cc3ec3ccd96a64fc53e4e3e (patch)
tree52276d1dd9e8fd44a055211305988f92a6507b76 /numpy/polynomial/hermite.py
parentb7ff1d3a54e2e69c82df24b658e545606f4db8e7 (diff)
downloadnumpy-fe76cc7fb5c598375cc3ec3ccd96a64fc53e4e3e.tar.gz
Use np.full in numpy.polynomial
Diffstat (limited to 'numpy/polynomial/hermite.py')
-rw-r--r--numpy/polynomial/hermite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py
index 2aed4b34f..4905f366f 100644
--- a/numpy/polynomial/hermite.py
+++ b/numpy/polynomial/hermite.py
@@ -1704,7 +1704,7 @@ def _normed_hermite_n(x, n):
"""
if n == 0:
- return np.ones(x.shape)/np.sqrt(np.sqrt(np.pi))
+ return np.full(x.shape, 1/np.sqrt(np.sqrt(np.pi)))
c0 = 0.
c1 = 1./np.sqrt(np.sqrt(np.pi))