44 #include "AbstractLinAlgPack_COOMatrixOutFunc.hpp"
45 #include "AbstractLinAlgPack_COOMatrixClass.hpp"
47 std::ostream& AbstractLinAlgPack::output(std::ostream& o,
const COOMatrix& coom) {
49 o << coom.rows() <<
" " << coom.cols() <<
" " << coom.nz() <<
"\n";
51 const COOMatrix::value_type
52 *itr_val = coom.const_val(),
53 *itr_val_end = coom.const_val() + coom.nz();
54 const COOMatrix::indice_type
55 *itr_ivect = coom.const_ivect(),
56 *itr_jvect = coom.const_jvect();
58 for(; itr_val != itr_val_end; ++itr_val, ++itr_ivect, ++itr_jvect)
59 o << *itr_val <<
":" << *itr_ivect <<
":" << *itr_jvect <<
" ";