Main MRPT website > C++ reference for MRPT 1.4.0
Functions
Custom I/O for math containers

Detailed Description

Collaboration diagram for Custom I/O for math containers:

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...
 

Function Documentation

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.

Output format is one line per entry with the format: "i j val", i:row, j:col, val:value.

Template Parameters
TRIPLETshould be Eigen::Triplet<T>

Definition at line 250 of file base/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.11 for MRPT 1.4.0 SVN:Unversioned directory at Mon May 30 18:20:32 UTC 2016