aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2024-07-19 15:18:22 +0200
committerThomas Albers Raviola <thomas@thomaslabs.org>2024-07-19 15:18:22 +0200
commit27c2a2af862ff21ecbf6a7523d6a52bda42825fd (patch)
tree061a481efcadc48aaf8da13532aad2212b2c42dd
parentcf5c404add0c69d25effbc8e6cc10545918ca4b8 (diff)
Change float_ to float64
-rw-r--r--schroedinger/schroedinger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/schroedinger/schroedinger.py b/schroedinger/schroedinger.py
index 3ed2c3f..4c5d1f7 100644
--- a/schroedinger/schroedinger.py
+++ b/schroedinger/schroedinger.py
@@ -77,7 +77,7 @@ def solve_schroedinger(mass, potential, delta, eig_interval=None):
n = potential.shape[0]
a = 1 / mass / delta**2
w, v = eigh_tridiagonal(a + potential,
- -a * np.ones(n - 1, dtype=np.float_) / 2.0,
+ -a * np.ones(n - 1, dtype=np.float64) / 2.0,
select='i', select_range=eig_interval)
# Normalize eigenfunctions
for i in range(w.shape[0]):