14 throw std::invalid_argument(
"lanczos: matrix must be square");
26 throw std::invalid_argument(
"lanczos: matrix must be square");
constexpr idx rows() const noexcept
constexpr idx cols() const noexcept
Sparse matrix in Compressed Sparse Row (CSR) format.
Lanczos eigensolver for symmetric operators.
SymmetricOp< Op > assume_symmetric(Op op)
LanczosResult lanczos(const Op &A, idx k, real tol=1e-10, idx max_steps=0, Backend backend=Backend::seq)
Operator Lanczos for a declared symmetric adapter.
Dense Matrix adapter for the operator protocol.
Declared mathematical properties for linear operators.
SparseMatrix adapter for the operator protocol.
Adapt a dense Matrix to the operator protocol.
Adapt a SparseMatrix to the operator protocol.