46 #include "DenseLinAlgPack_MatlabPack.hpp"
47 #include "DenseLinAlgPack_DMatrixClass.hpp"
49 namespace DenseLinAlgPack {
51 std::ostream& MatlabPack::out( std::ostream& o,
const char* name,
const DVectorSlice& vs
54 int p = o.precision();
55 o.precision( std::numeric_limits<value_type>::digits10 + 3 );
58 for( DVectorSlice::const_iterator itr = vs.begin(); itr != vs.end(); ++itr )
59 o <<
' ' << *itr <<
";";
70 std::ostream& MatlabPack::out( std::ostream& o,
const char* name,
const DMatrixSlice& gms
73 int p = o.precision();
74 o.precision( std::numeric_limits<value_type>::digits10 + 3 );
76 o << name <<
" = [\n";
77 for(
size_type i = 1; i <= gms.rows(); ++i ) {
78 const DVectorSlice vs = gms.row(i);
79 for( DVectorSlice::const_iterator itr = vs.begin(); itr != vs.end(); ++itr )