1 #ifndef CONSTANTVECTOR_H_
2 #define CONSTANTVECTOR_H_
36 void SetValue(Eigen::VectorXd
const& valIn);
45 static Eigen::VectorXi
OutSizes(std::vector<Eigen::VectorXd>
const& outs);
47 static Eigen::VectorXi
OutSizes(std::vector<boost::any>
const& outs);
A muq::Modeling::ModPiece with no inputs and a single known vector-valued output.
void SetValue(Eigen::VectorXd const &valIn)
Set the outputs.
static Eigen::VectorXi OutSizes(std::vector< Eigen::VectorXd > const &outs)
virtual void EvaluateImpl(muq::Modeling::ref_vector< Eigen::VectorXd > const &inputs) override
The outputs are already set and not cleared so don't do anything.
ConstantVector(std::vector< Eigen::VectorXd > const &outs)
Create a muq::Modeling::ConstantPiece with the outputs given in a vector of vectors.
Provides an abstract interface for defining vector-valued model components.
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...