num::operators::dense_op¶
Defined in header <operator/dense.hpp>
struct dense_op final;
Operator that applies a dense matrix: \(y \leftarrow A x\).
Members¶
| member | description |
|---|---|
using domain_type = vec<real> |
|
using codomain_type = vec<real> |
|
explicit dense_op(const mat<real> &A) |
Hold a reference to A without copying it. |
void apply(const vec<real> &x, vec<real> &y) const |
Apply the matrix: \(y \leftarrow A x\). |
idx rows() const noexcept |
|
idx cols() const noexcept |