9 for(
unsigned int i=0; i<outs.size(); ++i ) {
17 for(
unsigned int i=0; i<outs.size(); ++i ) {
18 assert(
typeid(Eigen::VectorXd)==outs[i].type());
19 outputs.at(i) = boost::any_cast<Eigen::VectorXd>(outs[i]);
30 Eigen::VectorXi oSizes(outs.size());
31 for(
unsigned int i=0; i<outs.size(); ++i ) {
32 oSizes(i) = outs[i].size();
39 Eigen::VectorXi oSizes(outs.size());
40 for(
unsigned int i=0; i<outs.size(); ++i ) {
41 assert(
typeid(Eigen::VectorXd)==outs[i].type());
42 oSizes(i) = boost::any_cast<Eigen::VectorXd>(outs[i]).size();
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< Eigen::VectorXd > outputs
const Eigen::VectorXi outputSizes
Exception to throw when matrices, vectors, or arrays are the wrong size.
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...
NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string to_string(const NLOHMANN_BASIC_JSON_TPL &j)
user-defined to_string function for JSON values