diff options
author | Roman Yurchak <rth.yurchak@pm.me> | 2018-10-03 00:35:45 +0200 |
---|---|---|
committer | Roman Yurchak <rth.yurchak@pm.me> | 2018-10-03 00:41:49 +0200 |
commit | fe76cc7fb5c598375cc3ec3ccd96a64fc53e4e3e (patch) | |
tree | 52276d1dd9e8fd44a055211305988f92a6507b76 /numpy/polynomial/hermite.py | |
parent | b7ff1d3a54e2e69c82df24b658e545606f4db8e7 (diff) | |
download | numpy-fe76cc7fb5c598375cc3ec3ccd96a64fc53e4e3e.tar.gz |
Use np.full in numpy.polynomial
Diffstat (limited to 'numpy/polynomial/hermite.py')
-rw-r--r-- | numpy/polynomial/hermite.py | 2 |
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)) |