MRPT  1.9.9
Functions
Load matrix from CSV file (in #include <mrpt/io/csv.h>)

Detailed Description

Functions

template<typename MATRIX >
void mrpt::io::load_csv (const std::string &path, MATRIX &M)
 Loads a matrix from a CSV text file. More...
 

Function Documentation

◆ load_csv()

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.

Template Parameters
MATRIXCan be any Eigen matrix or mrpt::math matrices.
Note
Based on: https://stackoverflow.com/a/39146048/1631514

Definition at line 32 of file csv.h.

References val.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020