MRPT
1.9.9
|
Functions | |
template<class TRIPLET > | |
bool | mrpt::math::saveEigenSparseTripletsToFile (const std::string &sFile, std::vector< TRIPLET > &tri) |
Saves to a plain-text file the nonzero entries of a Eigen sparse matrix, represented as a vector of triplets. More... | |
bool mrpt::math::saveEigenSparseTripletsToFile | ( | const std::string & | sFile, |
std::vector< TRIPLET > & | tri | ||
) |
Saves to a plain-text file the nonzero entries of a Eigen sparse matrix, represented as a vector of triplets.
Output format is one line per entry with the format: "i j val", i:row, j:col, val:value.
TRIPLET | should be Eigen::Triplet<T> |
Definition at line 234 of file math/include/mrpt/math/utils.h.
References mrpt::system::os::fclose(), mrpt::system::os::fopen(), and mrpt::system::os::fprintf().
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 |