From fe76cc7fb5c598375cc3ec3ccd96a64fc53e4e3e Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Wed, 3 Oct 2018 00:35:45 +0200 Subject: Use np.full in numpy.polynomial --- numpy/polynomial/hermite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/polynomial/hermite.py') 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)) -- cgit v1.2.1