45 #include "DenseLinAlgPack_DMatrixOutFunc.hpp"
46 #include "DenseLinAlgPack_DVectorOutFunc.hpp"
47 #include "DenseLinAlgPack_DMatrixClass.hpp"
48 #include "Teuchos_FancyOStream.hpp"
50 std::ostream& DenseLinAlgPack::output(std::ostream& out_arg,
const DMatrixSlice& gms
51 , LinAlgPackIO::fmtflags extra_flags )
55 int w = out->width(0) - 1;
57 if( !(extra_flags & LinAlgPackIO::ignore_dim_bit) ) {
58 std::ios_base::fmtflags old = out->flags();
60 << std::setw(0) << std::left << gms.rows() <<
' ' << gms.cols()
65 if( gms.rows() && gms.cols() ) {
66 for(
size_type i = 1; i <= gms.rows();++i) {
67 const DVectorSlice& vs =gms.row(i);
68 DVectorSlice::const_iterator itr = vs.begin();
69 for(
size_type j = 1; itr != vs.end(); ++j, ++itr ) {
70 *out <<
" " << std::setw(w) << (*itr) <<
":" << i <<
":" << j;
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)