Skip to content
Snippets Groups Projects
Commit e44695d0 authored by Michael Wimmer's avatar Michael Wimmer Committed by Christoph Groth
Browse files

bug fix: real/complex was interchanged

parent 5b79bc7a
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ def setup_linsys(h_cell, h_hop, tol=1e6, stabilization=None):
matrices_real = issubclass(np.common_type(h_cell, h_hop), np.floating)
add_imaginary = stabilization[0] or ((stabilization[0] is None) and
matrices_real)
not matrices_real)
# Check if there is a chance we will not need to add an imaginary term.
if not add_imaginary:
h = h_cell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment