3 #include "boost/none.hpp"
12 Eigen::VectorXd
const& actionVecIn) : rhs(rhs),
15 actionVec(actionVecIn),
16 isAction(actionVecIn.size()>0)
22 for(
unsigned int i=0; i<refinputs.size(); ++i )
23 inputs.push_back(refinputs[i]);
28 std::shared_ptr<ModPiece>
const& root,
32 Eigen::VectorXd
const& actionVecIn) : rhs(rhs),
36 actionVec(actionVecIn),
37 isAction(actionVecIn.size()>0)
43 for(
unsigned int i=0; i<refinputs.size(); ++i )
44 inputs.push_back(refinputs[i]);
55 time = Eigen::VectorXd::Constant(1, newTime);
Eigen::VectorXd time
The inputs to the rhs — the first is the state, the rest are constant in time.
const bool autonomous
Is the RHS autonomous?
ref_vector< Eigen::VectorXd > inputs
ODEData(std::shared_ptr< ModPiece > const &rhs, ref_vector< Eigen::VectorXd > const &refinputs, bool const autonomous, int const wrtIn, Eigen::VectorXd const &actionVec=Eigen::VectorXd())
Construct basic ode data.
void UpdateInputs(Eigen::Ref< const Eigen::VectorXd > const &newState, double const time)
Update the time and state inputs.
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...