1 #ifndef EIGENDATASTREAM_HH
2 #define EIGENDATASTREAM_HH
5 #include "casm/external/Eigen/Dense"
19 throw std::runtime_error(
20 "Attempting to stream non-rectangular data to Eigen::MatrixXd "
21 "using MatrixXdDataStream, at row=" +
68 std::cerr <<
"WARNING: Attempting to collect labeled data from a "
69 "datastream, but too many labels exist for row "
78 std::cerr <<
"WARNING: Attempting to collect labeled data from a "
79 "datastream, but no label was available for row "
virtual DataStream & operator<<(const std::string &)
const std::vector< std::string > & labels() const
std::vector< std::string > m_labels
DataStream & operator<<(const std::string &_str)
LabeledMatrixXdDataStream(DataStreamTraits _traits=none)
virtual DataStream & newline()
DataStream & operator<<(long _l)
MatrixXdDataStream(DataStreamTraits _traits=none)
const Eigen::MatrixXd & matrix()
DataStream & operator<<(double _d)
std::string to_string(ENUM val)
Return string representation of enum class.
Eigen::MatrixXd::Index EigenIndex