Skip to content

num::operators::sparse_op

Defined in header <linear/sparse/sparse_op.hpp>

struct sparse_op final;

Adapt a spmat to the operator protocol.

Members

member description
using domain_type = vec<real>
using codomain_type = vec<real>
explicit sparse_op(const spmat &A) Store a non-owning reference to a CSR matrix.
void apply(const vec<real> &x, vec<real> &y) const Compute y=A*x.
idx rows() const noexcept
idx cols() const noexcept