CGAL 6.2 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches
Writes matrix to an output stream or a file.

Write a sparse matrix to an output stream or a file using the .osm file format.

Output a sparse matrix (the matrix can be reloaded using read_matrix).

Friends

template<typename _CT >
std::ostream & write_matrix (const Sparse_matrix< _CT, OSM::COLUMN > &M, std::ostream &out)
 Writes a sparse COLUMN matrix to a stream.
 
template<typename _CT >
std::ostream & write_matrix (const Sparse_matrix< _CT, OSM::ROW > &M, std::ostream &out)
 Writes a sparse ROW matrix to a stream.
 
template<typename _CT >
void write_matrix (const Sparse_matrix< _CT, OSM::COLUMN > &M, std::string filename)
 Writes a sparse COLUMN matrix to a file.
 
template<typename _CT >
void write_matrix (const Sparse_matrix< _CT, OSM::ROW > &M, std::string filename)
 Writes a sparse ROW matrix to a file.