33 #ifndef SMALL_ALGEBRA_PRINT_H_
34 #define SMALL_ALGEBRA_PRINT_H_
42 template<
typename TStorage>
48 template<
typename TStorage>
52 ss << std::setprecision(9);
53 for(
size_t r=0; r<A.num_rows(); ++r)
55 for(
size_t c=0; c<A.num_cols(); ++c)
57 ss <<
name << brackets[0] << r+base <<
", " << c+base << brackets[1] <<
" = " << A(r, c) << seperator;
63 template<
typename TStorage>
68 ss <<
name <<
" = zeros(" << A.num_rows() <<
", " << A.num_cols() <<
")\n";
74 template<
typename TStorage>
79 ss <<
name <<
" = zeros(" << A.num_rows() <<
", " << A.num_cols() <<
")\n";
84 template<
typename TStorage>
89 ss <<
name <<
" = Matrix(" << A.num_rows() <<
", " << A.num_cols() <<
")\n";
location name
Definition: checkpoint_util.lua:128
Definition: densematrix.h:57
#define UG_LOG(msg)
Definition: log.h:367
std::string MatlabString(const DenseMatrix< TStorage > &A, const char *name)
Definition: print.h:65
std::string CPPString(const DenseMatrix< TStorage > &A, const char *name)
Definition: print.h:86
std::string JuliaString(const DenseMatrix< TStorage > &A, const char *name)
Definition: print.h:76
void MaplePrint(const DenseMatrix< TStorage > &A, const char *name)
Definition: print.h:43
std::string NonzeroString(const DenseMatrix< TStorage > &A, const char *brackets, const char *seperator, int base, const char *name)
Definition: print.h:49