Eigen matrix I/O utilities.
More...
#include <ioutils.h>
|
| template<typename T> |
| static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &in, const QString &sPath, const QString &sDescription=QString()) |
| template<typename T> |
| static bool | write_eigen_matrix (const Eigen::Matrix< T, 1, Eigen::Dynamic > &in, const QString &sPath, const QString &sDescription=QString()) |
| template<typename T> |
| static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &in, const QString &sPath, const QString &sDescription=QString()) |
| template<typename T> |
| static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &in, const std::string &sPath, const std::string &sDescription=std::string()) |
| template<typename T> |
| static bool | write_eigen_matrix (const Eigen::Matrix< T, 1, Eigen::Dynamic > &in, const std::string &sPath, const std::string &sDescription=std::string()) |
| template<typename T> |
| static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &in, const std::string &sPath, const std::string &sDescription=std::string()) |
| template<typename T> |
| static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &out, const QString &path) |
| template<typename T> |
| static bool | read_eigen_matrix (Eigen::Matrix< T, 1, Eigen::Dynamic > &out, const QString &path) |
| template<typename T> |
| static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, 1 > &out, const QString &path) |
| template<typename T> |
| static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &out, const std::string &path) |
| template<typename T> |
| static bool | read_eigen_matrix (Eigen::Matrix< T, 1, Eigen::Dynamic > &out, const std::string &path) |
| template<typename T> |
| static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, 1 > &out, const std::string &path) |
Eigen matrix I/O utilities.
IO utility routines for reading/writing Eigen matrices to text files.
Definition at line 80 of file ioutils.h.
◆ ConstSPtr
◆ SPtr
◆ ~IOUtils()
| UTILSLIB::IOUtils::~IOUtils |
( |
| ) |
|
|
inline |
◆ read_eigen_matrix() [1/6]
template<typename T>
| bool UTILSLIB::IOUtils::read_eigen_matrix |
( |
Eigen::Matrix< T, 1, Eigen::Dynamic > & | out, |
|
|
const QString & | path ) |
|
static |
◆ read_eigen_matrix() [2/6]
template<typename T>
| bool UTILSLIB::IOUtils::read_eigen_matrix |
( |
Eigen::Matrix< T, 1, Eigen::Dynamic > & | out, |
|
|
const std::string & | path ) |
|
static |
◆ read_eigen_matrix() [3/6]
template<typename T>
| bool UTILSLIB::IOUtils::read_eigen_matrix |
( |
Eigen::Matrix< T, Eigen::Dynamic, 1 > & | out, |
|
|
const QString & | path ) |
|
static |
◆ read_eigen_matrix() [4/6]
template<typename T>
| bool UTILSLIB::IOUtils::read_eigen_matrix |
( |
Eigen::Matrix< T, Eigen::Dynamic, 1 > & | out, |
|
|
const std::string & | path ) |
|
static |
◆ read_eigen_matrix() [5/6]
template<typename T>
| bool UTILSLIB::IOUtils::read_eigen_matrix |
( |
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | out, |
|
|
const QString & | path ) |
|
static |
Read Eigen Matrix from file (QString path).
- Parameters
-
| [out] | out | Matrix resized and filled with the values read; lines containing '#' are skipped. |
| [in] | path | Path of the whitespace-separated text file to read. |
- Returns
- True on success, false if the file could not be opened.
Definition at line 283 of file ioutils.h.
◆ read_eigen_matrix() [6/6]
template<typename T>
| bool UTILSLIB::IOUtils::read_eigen_matrix |
( |
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | out, |
|
|
const std::string & | path ) |
|
static |
Read Eigen Matrix from file (std::string path).
- Parameters
-
| [out] | out | Matrix resized and filled with the values read; lines containing '#' are skipped. |
| [in] | path | Path of the whitespace-separated text file to read. |
- Returns
- True on success, false if the file could not be opened.
Definition at line 360 of file ioutils.h.
◆ write_eigen_matrix() [1/6]
template<typename T>
| bool UTILSLIB::IOUtils::write_eigen_matrix |
( |
const Eigen::Matrix< T, 1, Eigen::Dynamic > & | in, |
|
|
const QString & | sPath, |
|
|
const QString & | sDescription = QString() ) |
|
static |
◆ write_eigen_matrix() [2/6]
template<typename T>
| bool UTILSLIB::IOUtils::write_eigen_matrix |
( |
const Eigen::Matrix< T, 1, Eigen::Dynamic > & | in, |
|
|
const std::string & | sPath, |
|
|
const std::string & | sDescription = std::string() ) |
|
static |
◆ write_eigen_matrix() [3/6]
template<typename T>
| bool UTILSLIB::IOUtils::write_eigen_matrix |
( |
const Eigen::Matrix< T, Eigen::Dynamic, 1 > & | in, |
|
|
const QString & | sPath, |
|
|
const QString & | sDescription = QString() ) |
|
static |
◆ write_eigen_matrix() [4/6]
template<typename T>
| bool UTILSLIB::IOUtils::write_eigen_matrix |
( |
const Eigen::Matrix< T, Eigen::Dynamic, 1 > & | in, |
|
|
const std::string & | sPath, |
|
|
const std::string & | sDescription = std::string() ) |
|
static |
◆ write_eigen_matrix() [5/6]
template<typename T>
| bool UTILSLIB::IOUtils::write_eigen_matrix |
( |
const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | in, |
|
|
const QString & | sPath, |
|
|
const QString & | sDescription = QString() ) |
|
static |
Write Eigen Matrix to file (QString path).
- Parameters
-
| [in] | in | Matrix to write as whitespace-separated text, one row per line. |
| [in] | sPath | Path of the output file; an existing file is overwritten. |
| [in] | sDescription | Optional description; if non-empty, a dimensions and description header is written. |
- Returns
- True on success, false if the file could not be opened for writing.
Definition at line 180 of file ioutils.h.
◆ write_eigen_matrix() [6/6]
template<typename T>
| bool UTILSLIB::IOUtils::write_eigen_matrix |
( |
const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | in, |
|
|
const std::string & | sPath, |
|
|
const std::string & | sDescription = std::string() ) |
|
static |
Write Eigen Matrix to file (std::string path).
- Parameters
-
| [in] | in | Matrix to write as whitespace-separated text, one row per line. |
| [in] | sPath | Path of the output file; an existing file is overwritten. |
| [in] | sDescription | Optional description; if non-empty, a dimensions and description header is written. |
- Returns
- True on success, false if the file could not be opened for writing.
Definition at line 228 of file ioutils.h.
The documentation for this class was generated from the following file: