forked from jan/fdfd_tools
fix operator test
This commit is contained in:
parent
66712efd49
commit
47dd0df8bc
@ -53,7 +53,7 @@ def rayleigh_quotient_iteration(operator: sparse.spmatrix or spalg.LinearOperato
|
||||
:return: (eigenvalue, eigenvector)
|
||||
"""
|
||||
try:
|
||||
_test = operator - sparse.eye(operator.shape)
|
||||
_test = operator - sparse.eye(operator.shape[0])
|
||||
shift = lambda eigval: eigval * sparse.eye(operator.shape[0])
|
||||
if solver is None:
|
||||
solver = spalg.spsolve
|
||||
|
Loading…
Reference in New Issue
Block a user