42 #include "RTOpPack_print_sub_vector.hpp"
43 #include "Teuchos_FancyOStream.hpp"
45 std::ostream& RTOpPack::output(
46 std::ostream& o_arg,
const SubVector& v
47 ,
bool print_dim ,
bool newline
52 int w = o->width(0) - 1;
54 *o << std::setw(0) << std::left << v.subDim() << std::endl << std::right;
58 const RTOp_value_type *v_val = v.values();
59 const ptrdiff_t v_val_s = v.stride();
60 for( RTOp_index_type i = 1; i <= v.subDim(); ++i, v_val+=v_val_s ) {
63 *o <<
" " << std::setw(w) << (*v_val) <<
":" << i + v.globalOffset();
65 if(newline) *o << std::endl;
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)