Browse Source

fix operator test

master
jan 2 years ago
parent
commit
47dd0df8bc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fdfd_tools/eigensolvers.py

+ 1
- 1
fdfd_tools/eigensolvers.py View File

@@ -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…
Cancel
Save