45 #include "DenseLinAlgPack_DVectorOutFunc.hpp"
46 #include "DenseLinAlgPack_DVectorClass.hpp"
48 std::ostream& DenseLinAlgPack::output(std::ostream& os,
const DVectorSlice& vs
49 , LinAlgPackIO::fmtflags extra_flags)
51 int w = os.width(0) - 1;
53 if( !(extra_flags & LinAlgPackIO::ignore_dim_bit) )
54 os << std::setw(0) << std::left << vs.dim() << std::endl << std::right;
56 DVectorSlice::const_iterator itr = vs.begin();
57 for(
size_type i = 1; itr != vs.end(); ++i, ++itr ) {
58 os <<
" " << std::setw(w) << (*itr) <<
":" << i;
62 if( !(extra_flags & LinAlgPackIO::no_insert_newlines_bit) )