num::operators::callable_op¶
Defined in header <operator/callable.hpp>
template <class F>
struct callable_op final;
Adapt any callable void(const vec&, vec&) to the operator protocol.
Members¶
| member | description |
|---|---|
using domain_type = vec<real> |
|
using codomain_type = vec<real> |
|
callable_op(F f, idx rows, idx cols) |
Adapt a callable to a rectangular operator with explicit dimensions. |
callable_op(F f, idx n) |
Adapt a callable to a square n-by-n operator. |
void apply(const vec<real> &x, vec<real> &y) const |
Evaluate y=A*x, resizing y to the declared row count when needed. |
idx rows() const noexcept |
|
idx cols() const noexcept |