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

make kept_vars work properly if None is passed

parent a77c3f34
Branches
Tags
No related merge requests found
......@@ -150,7 +150,7 @@ class Solver(common.SparseSolver):
inst, a_shape = factorized_a
if kept_vars is None:
kept_vars = [range(a_shape[1])]
kept_vars = slice(a_shape[1])
sols = []
......
......@@ -140,7 +140,7 @@ class Solver(common.SparseSolver):
slv, a_shape = factorized_a
if kept_vars is None:
kept_vars = [range(a_shape[1])]
kept_vars = slice(a_shape[1])
sols = []
vec = np.empty(a_shape[0], complex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment