For reading and writing csv files. More...
Functions | |
std::vector< std::vector < std::string > > | readRaw (const std::string &inCsvFilePath) |
Read csv file into a list of list of string fields. | |
void | writeRaw (const std::string &outCsvFilePath, const std::vector< std::vector< std::string >> &data) |
Write list of list of string fields into a csv file. | |
std::pair< size_t, size_t > | getRowMatrixDimensions (const std::vector< std::vector< std::string >> &data) |
Extracts row and column dimensions of data in list of list of string fields format. More... | |
template<typename ScalarType , int Rows = Eigen::Dynamic, int Cols = Eigen::Dynamic> | |
Eigen::Matrix< ScalarType, Rows, Cols > | read (const std::string &inCsvFilePath) |
Read csv file into a rectangular matrix. More... | |
template<typename ScalarType , int Rows = Eigen::Dynamic, int Cols = Eigen::Dynamic> | |
void | write (const std::string &outCsvFilePath, const Eigen::Matrix< ScalarType, Rows, Cols > &data) |
Write Matrix into csv file. | |
For reading and writing csv files.
std::pair< size_t, size_t > obsidian::io::csv::getRowMatrixDimensions | ( | const std::vector< std::vector< std::string >> & | data | ) |
Extracts row and column dimensions of data in list of list of string fields format.
Eigen::Matrix<ScalarType, Rows, Cols> obsidian::io::csv::read | ( | const std::string & | inCsvFilePath | ) |
Read csv file into a rectangular matrix.