42 const std::string& offset =
"") {
43 std::ostringstream sout;
45 sout << std::setiosflags(std::ios::fixed) << std::setprecision(precision);
46 if (matrix.cols() == 1) {
48 for (
int i = 0; i < matrix.rows(); ++i) {
51 if (i != matrix.rows() - 1)
56 for (
int i = 0; i < matrix.rows(); ++i) {
57 for (
int j = 0; j < matrix.cols(); ++j) {
62 if (j == matrix.cols() - 1)
67 if (i != matrix.rows() -