8 std::shared_ptr<LinearOperator> Bin) :
LinearOperator(Ain->rows(), Ain->cols()), A(Ain), B(Bin)
10 assert(
A->rows()==
B->rows());
11 assert(
A->cols()==
B->cols());
17 return A->Apply(x) +
B->Apply(x);
23 return A->ApplyTranspose(x) +
B->ApplyTranspose(x);
Generic linear operator base class.
SumOperator(std::shared_ptr< LinearOperator > Ain, std::shared_ptr< LinearOperator > Bin)
std::shared_ptr< LinearOperator > B
std::shared_ptr< LinearOperator > A
virtual Eigen::MatrixXd ApplyTranspose(Eigen::Ref< const Eigen::MatrixXd > const &x) override
virtual Eigen::MatrixXd Apply(Eigen::Ref< const Eigen::MatrixXd > const &x) override