MRPT  2.0.0
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 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020