#include <iostream>
#include <fstream>
#include <CGAL/OSM/OSM.h>
typedef typename Sparse_matrix_struct::template Sparse_chain_type<int, CGAL::OSM::COLUMN> Column_chain;
typedef typename Sparse_matrix_struct::template Sparse_matrix_type<int, CGAL::OSM::COLUMN> Column_matrix;
int main ()
{
Column_matrix M(5,4) ;
{
std::cout << "col: " << *it_col << std::endl ;
for (Column_chain::const_iterator it = col.begin(); it != col.end(); ++it)
{
std::cout << "row: " << it->first << " - coef: " << it->second << std::endl ;
}
}
std::cout << "M: " << M << std::endl;
return 0 ;
}
const SCT< _CT, COLUMN > & cget_column(const Sparse_matrix_core< _CT, COLUMN, SCT > &matrix, size_t index)
Definition: Sparse_matrix.h:1875
void set_coefficient(Sparse_matrix_core< _CT, _CTF, SCT > &matrix, size_t i, size_t j, const _CT d)
Definition: Sparse_matrix.h:1956
Definition: Bitboard.h:97
The structure Sparse_matrix provides a user friendly interface for sparse matrices built over a given...
Definition: Sparse_matrix.h:55