26 size_t input_number = 0;
27 for (
const auto& in_name:
m_names) {
28 if (!in.count(in_name)) {
31 invec(input_number) = in.at(in_name);
40 const std::vector<Input>&
inputs):
58 using namespace Eigen;
62 size_t n_cols = in.begin()->second.size();
63 MatrixXd inmat(
m_names.size(), n_cols);
65 for (
const auto& in_name:
m_names) {
66 if (!in.count(in_name)) {
69 const auto& invec = in.at(in_name);
70 if (invec.size() != n_cols) {
73 inmat.row(in_num) = Map<const VectorXd>(invec.data(), invec.size());
77 return MatrixXd(
m_names.size(), 0);