45 #include "AbstractLinAlgPack_SpVectorOut.hpp"
46 #include "AbstractLinAlgPack_SpVectorClass.hpp"
49 AbstractLinAlgPack::operator<<(std::ostream& os,
const SpVectorSlice& svs)
51 os << std::left << std::setw(0) << svs.dim() <<
" " << svs.nz() << std::endl << std::right;
52 if( !svs.dim() )
return os;
53 const SpVectorSlice::difference_type offset = svs.offset();
54 for(SpVectorSlice::const_iterator itr = svs.begin(); itr != svs.end(); ++itr )
55 os <<
" " << itr->value() <<
":" << (itr->index() + offset);
56 return os << std::endl;