Docs/Eigenvalue Solvers (ARPACK)/ar.generalized.eigsNear
Back to Eigenvalue Solvers (ARPACK)

ar.generalized.eigsNear

Find eigenvalues of a symmetric matrix nearest to a target value.

Syntax

ar.generalized.eigsNear(matvec, solveShifted, n, nev, sigma, options?)

Description

Find eigenvalues of a symmetric matrix nearest to a target value. This is a convenience wrapper for shift-invert mode that handles the setup automatically. You provide a function to solve (A - σI)x = b and this function finds eigenvalues closest to σ.

Parameters

NameDescription
matvec- Function computing y = A*x where A is symmetric
solveShifted- Function solving (A - σI)x = b, i.e., returns inv(A - σI)*b
n- Dimension of the matrix
nev- Number of eigenvalues to find
sigma- Target value - finds eigenvalues closest to this
options(optional)- Additional solver options

Returns

Promise<EigsResult>