7 Eigen::VectorXd
const& bIn) :
ModPiece(Ain->inputSizes,
12 assert(
A->rows()==
b.rows());
18 outputs.at(0) =
b +
A->Apply(input.at(0).get()).col(0);
22 unsigned int const inputDimWrt,
24 Eigen::VectorXd
const& sensitivity)
26 gradient =
A->ApplyTranspose(sensitivity);
30 unsigned int const inputDimWrt,
37 unsigned int const inputDimWrt,
39 Eigen::VectorXd
const& vec)
AffineOperator(T const &Ain, Eigen::VectorXd const &bIn)
virtual void ApplyJacobianImpl(unsigned int const outputDimWrt, unsigned int const inputDimWrt, muq::Modeling::ref_vector< Eigen::VectorXd > const &input, Eigen::VectorXd const &vec) override
virtual void EvaluateImpl(muq::Modeling::ref_vector< Eigen::VectorXd > const &input) override
virtual void JacobianImpl(unsigned int const outputDimWrt, unsigned int const inputDimWrt, muq::Modeling::ref_vector< Eigen::VectorXd > const &input) override
virtual void GradientImpl(unsigned int const outputDimWrt, unsigned int const inputDimWrt, muq::Modeling::ref_vector< Eigen::VectorXd > const &input, Eigen::VectorXd const &sensitivity) override
std::shared_ptr< LinearOperator > A
Provides an abstract interface for defining vector-valued model components.
std::vector< Eigen::VectorXd > outputs
Eigen::VectorXd jacobianAction
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...