Skip to content

num::math::linear_operator

Defined in header <core/math/concepts.hpp>

template <class Op, class X = domain_t<Op>, class Y = codomain_t<Op>>
concept linear_operator =
    vector_space<X> && vector_space<Y> && requires(const Op &A, const X &x, Y &y) {
      apply(A, x, y);
      { A.rows() } -> std::integral;
      { A.cols() } -> std::integral;
    };

Linear operator \(A: X \to Y\) with apply, rows and cols. Linearity is assumed, not checked.