diff options
author | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-05-14 18:01:15 +0200 |
---|---|---|
committer | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-05-14 18:01:15 +0200 |
commit | 1a90133ff849e1f38a1a0c5cf47c36d4ad1850bd (patch) | |
tree | 0dd8dfb093f8f6ffbec9d0169ec39436399d5ecb | |
parent | 35b9fdf6b4c8e34e13dac72899f05be9afccc0e1 (diff) |
Add dtype to matrix
* linsolver/solvers.py (gaussian_elimination): Specify dtype of xx
-rw-r--r-- | solvers.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ def gaussian_eliminate( return None # Back substitution - xx = np.zeros((nn, 1)) + xx = np.zeros((nn, 1), dtype=np.float_) for i in range(nn - 1, -1, -1): xx[i] = (ee[i, nn] - np.dot(ee[i, i:nn], xx[i:nn])) / ee[i, i] |