diff options
author | MSeifert04 <michaelseifert04@yahoo.de> | 2019-07-01 21:19:51 +0200 |
---|---|---|
committer | MSeifert04 <michaelseifert04@yahoo.de> | 2019-07-01 21:19:51 +0200 |
commit | 94d6a3759d5b56b7c1c2ba4c327f891aedde2ebc (patch) | |
tree | 211f636ca7f6f653c775de14e3b25d96b352a89f /numpy/polynomial/hermite.py | |
parent | a14a8cefdeb80552f0feecd65c8c5b6b869aa487 (diff) | |
download | numpy-94d6a3759d5b56b7c1c2ba4c327f891aedde2ebc.tar.gz |
MAINT: Replace integers in places where booleans are expected
Diffstat (limited to 'numpy/polynomial/hermite.py')
-rw-r--r-- | numpy/polynomial/hermite.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py index 4bfd89e52..0011fa3b7 100644 --- a/numpy/polynomial/hermite.py +++ b/numpy/polynomial/hermite.py @@ -627,7 +627,7 @@ def hermder(c, m=1, scl=1, axis=0): array([1., 2., 3.]) """ - c = np.array(c, ndmin=1, copy=1) + c = np.array(c, ndmin=1, copy=True) if c.dtype.char in '?bBhHiIlLqQpP': c = c.astype(np.double) cnt = pu._deprecate_as_int(m, "the order of derivation") @@ -738,7 +738,7 @@ def hermint(c, m=1, k=[], lbnd=0, scl=1, axis=0): array([ 1.66666667, -0.5 , 0.125 , 0.08333333, 0.0625 ]) # may vary """ - c = np.array(c, ndmin=1, copy=1) + c = np.array(c, ndmin=1, copy=True) if c.dtype.char in '?bBhHiIlLqQpP': c = c.astype(np.double) if not np.iterable(k): @@ -846,7 +846,7 @@ def hermval(x, c, tensor=True): [115., 203.]]) """ - c = np.array(c, ndmin=1, copy=0) + c = np.array(c, ndmin=1, copy=False) if c.dtype.char in '?bBhHiIlLqQpP': c = c.astype(np.double) if isinstance(x, (tuple, list)): @@ -1130,7 +1130,7 @@ def hermvander(x, deg): if ideg < 0: raise ValueError("deg must be non-negative") - x = np.array(x, copy=0, ndmin=1) + 0.0 + x = np.array(x, copy=False, ndmin=1) + 0.0 dims = (ideg + 1,) + x.shape dtyp = x.dtype v = np.empty(dims, dtype=dtyp) |