X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmatrix.cpp;h=eddc62052c1a4c7d2c5dc235147d5fcb1f098bf7;hp=dd0caa55edbf177b204c2e55c4fc70abcf74b5c0;hb=955cb185a85535ab328ffedbfccdc508ce80fa91;hpb=721cff7b2f8d555e085202f6f3f47801b92d0413 diff --git a/ginac/matrix.cpp b/ginac/matrix.cpp index dd0caa55..eddc6205 100644 --- a/ginac/matrix.cpp +++ b/ginac/matrix.cpp @@ -25,6 +25,7 @@ #include "matrix.h" #include "debugmsg.h" +#include "utils.h" #ifndef NO_GINAC_NAMESPACE namespace GiNaC { @@ -42,7 +43,7 @@ matrix::matrix() : basic(TINFO_matrix), row(1), col(1) { debugmsg("matrix default constructor",LOGLEVEL_CONSTRUCT); - m.push_back(exZERO()); + m.push_back(_ex0()); } matrix::~matrix() @@ -95,7 +96,7 @@ matrix::matrix(int r, int c) : basic(TINFO_matrix), row(r), col(c) { debugmsg("matrix constructor from int,int",LOGLEVEL_CONSTRUCT); - m.resize(r*c, exZERO()); + m.resize(r*c, _ex0()); } // protected @@ -390,16 +391,16 @@ ex determinant_numeric(const matrix & M) { GINAC_ASSERT(M.rows()==M.cols()); // cannot happen, just in case... matrix tmp(M); - ex det=exONE(); + ex det=_ex1(); ex piv; for (int r1=0; r1