Equana

Docs/Eigenvalue Solvers (ARPACK)/ar.sparse.bandedMatvec
Back to Eigenvalue Solvers (ARPACK)

ar.sparse.bandedMatvec

Create a matrix-vector product function from a banded matrix.

Syntax

ar.sparse.bandedMatvec(bands, offsets, n)

Description

Create a matrix-vector product function from a banded matrix. A banded matrix has non-zero entries only on certain diagonals. Each diagonal is specified by its offset from the main diagonal: - offset = 0: main diagonal - offset > 0: super-diagonals (above main) - offset < 0: sub-diagonals (below main)

Parameters

NameDescription
bands- Array of diagonal entries, one Float64Array per band
offsets- Offset for each band (0 = main diagonal, positive = super, negative = sub)
n- Matrix dimension (square matrix)

Returns

MatVecFunction