num::operators::dense_op¶
Defined in header <operator/dense.hpp>
struct dense_op final;
Adapt a dense mat to the operator protocol.
Members¶
| member | description |
|---|---|
using domain_type = vec<real> |
|
using codomain_type = vec<real> |
|
explicit dense_op(const mat<real> &A) |
Store a non-owning matrix reference. |
void apply(const vec<real> &x, vec<real> &y) const |
Compute y=A*x using num::accel (the build's best available backend). |
idx rows() const noexcept |
|
idx cols() const noexcept |