Equana

Docs/Sparse Direct Solver (SuperLU)/slu.solvers.solveShiftedSystem
Back to Sparse Direct Solver (SuperLU)

slu.solvers.solveShiftedSystem

Solve a shifted linear system (A - σI)x = b.

Syntax

slu.solvers.solveShiftedSystem(A, shift, b, options?)

Description

Solve a shifted linear system (A - σI)x = b. This is commonly used in shift-invert eigenvalue methods where we need to solve (A - σI)x = b for various right-hand sides b. The shift σ is chosen close to a target eigenvalue. For efficiency when solving multiple systems with the same shift, you can save and reuse the factorization.

Parameters

NameDescription
A- Sparse matrix in CSC format
shift- Shift value σ
b- Right-hand side vector
options(optional)- Solver options

Returns

ShiftedSolveResult