MUQ  0.4.3
ProductPiece.cpp
Go to the documentation of this file.
2 
3 using namespace muq::Modeling;
4 
5 ProductPiece::ProductPiece(unsigned int vectorDim) : ModPiece(Eigen::VectorXi::Constant(1,vectorDim), Eigen::VectorXi::Ones(1)){};
6 
8 {
9  outputs.resize(0);
10  outputs.at(0).resize(1);
11  outputs.at(0)(0) = inputs.at(0).get().prod();
12 }
Provides an abstract interface for defining vector-valued model components.
Definition: ModPiece.h:148
std::vector< Eigen::VectorXd > outputs
Definition: ModPiece.h:503
ProductPiece(unsigned int vectorDim)
Definition: ProductPiece.cpp:5
virtual void EvaluateImpl(muq::Modeling::ref_vector< Eigen::VectorXd > const &inputs) override
Definition: ProductPiece.cpp:7
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...
Definition: WorkPiece.h:37