diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-10-04 13:46:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 13:46:56 +0200 |
commit | 476903f189c01cc9b0480b10d80bfca1070ee442 (patch) | |
tree | 2da821786f021a2f094ebf328f5df04fe39c75bf | |
parent | e214496119f6b35819cebaa1562818d27b6c34fb (diff) | |
download | numpy-476903f189c01cc9b0480b10d80bfca1070ee442.tar.gz |
STY: Directly use a float rather than the `float64` constructor
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 927ab28df..3ca566f73 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3396,7 +3396,7 @@ def kaiser(M, beta): """ if M == 1: - return np.ones(1, dtype=np.result_type(M, np.float64(0))) + return np.ones(1, dtype=np.result_type(M, 0.0)) n = arange(0, M) alpha = (M-1)/2.0 return i0(beta * sqrt(1-((n-alpha)/alpha)**2.0))/i0(float(beta)) |