27 const std::string& name,
35 bool write(
const int dim)
override {
return true; }
39 const std::string& name,
42 const std::vector<char>& val,
43 const char default_val)
override;
46 const std::string& name,
49 const std::vector<int64_t>& val,
50 const int64_t default_val)
override;
53 const std::string& name,
56 const std::vector<double>& val,
57 const double default_val)
override;
60 const std::string& name,
63 const std::vector<Rational>& val,
64 const Rational& default_val)
override;
74 std::map<std::pair<std::string, PrimitiveType>,
MatrixX<T>>& Ts,
75 const std::string& name,
78 const std::vector<T>& val,
79 const T& default_val);
std::map< std::pair< std::string, PrimitiveType >, MatrixX< double > > doubles
std::map< std::pair< std::string, PrimitiveType >, MatrixX< char > > chars
void get_position_matrix(MatrixX< double > &matrix)
std::map< std::pair< std::string, PrimitiveType >, MatrixX< int64_t > > int64_ts
EigenMatrixWriter()=default
~EigenMatrixWriter()=default
void write_internal(std::map< std::pair< std::string, PrimitiveType >, MatrixX< T >> &Ts, const std::string &name, const int64_t type, const int64_t stride, const std::vector< T > &val, const T &default_val)
void get_Rational_matrix(const std::string &name, const PrimitiveType type, MatrixX< Rational > &matrix)
void write_top_simplex_type(const PrimitiveType type) override
void get_EV_matrix(MatrixX< int64_t > &matrix)
void get_TV_matrix(MatrixX< int64_t > &matrix)
bool write(const int dim) override
void get_char_matrix(const std::string &name, const PrimitiveType type, MatrixX< char > &matrix)
void write_absolute_id(const std::vector< int64_t > &id) override
void get_int64_t_matrix(const std::string &name, const PrimitiveType type, MatrixX< int64_t > &matrix)
void get_FV_matrix(MatrixX< int64_t > &matrix)
void write_capacities(const std::vector< int64_t > &capacities) override
std::map< std::pair< std::string, PrimitiveType >, MatrixX< Rational > > Rationals
void get_double_matrix(const std::string &name, const PrimitiveType type, MatrixX< double > &matrix)
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > MatrixX