5 #include "math_matrixinset.h"
6 #include "math_parser.h"
7 #include "math_mathmlstream.h"
11 MathMatrixInset::MathMatrixInset(MathArrayInset const & p)
16 MathInset * MathMatrixInset::clone() const
18 return new MathMatrixInset(*this);
22 void MathMatrixInset::write(WriteStream & os) const
24 MathArrayInset::write(os);
28 void MathMatrixInset::normalize(NormalStream & os) const
30 MathArrayInset::normalize(os);
34 void MathMatrixInset::maplize(MapleStream & os) const
36 os << "matrix(" << int(nrows()) << ',' << int(ncols()) << ",[";
37 for (idx_type idx = 0; idx < nargs(); ++idx) {
46 void MathMatrixInset::mathmlize(MathMLStream & os) const
49 for (row_type row = 0; row < nrows(); ++row) {
51 for (col_type col = 0; col < ncols(); ++col)
52 os << cell(index(row, col));
59 void MathMatrixInset::octavize(OctaveStream & os) const
62 for (row_type row = 0; row < nrows(); ++row) {
66 for (col_type col = 0; col < ncols(); ++col)
67 os << cell(index(row, col)) << ' ';