9 throw std::invalid_argument(
"SparseOp::apply: input dimension mismatch");
constexpr idx size() const noexcept
void sparse_matvec(const SparseMatrix &A, const Vector &x, Vector &y)
y = A * x
BasicVector< real > Vector
Real-valued dense vector with full backend dispatch (CPU + GPU)
SparseMatrix adapter for the operator protocol.
void apply(const Vector &x, Vector &y) const