Load matrix from CSV file (in #include <mrpt/io/csv.h>)
// global functions template <typename MATRIX> void mrpt::io::load_csv(const std::string& path, MATRIX& M);
Global Functions
template <typename MATRIX> void mrpt::io::load_csv( const std::string& path, MATRIX& M )
Loads a matrix from a CSV text file.
Empty lines or those with a trailing #
are ignored. Requires including the <Eigen/Dense>
header in the user translation unit.
Based on: https://stackoverflow.com/a/39146048/1631514
Parameters:
MATRIX |
Can be any Eigen matrix or mrpt::math matrices. |