]> www.ginac.de Git - ginac.git/blobdiff - ginac/matrix.cpp
Handle un-normal zeros properly in the division-free elimination.
[ginac.git] / ginac / matrix.cpp
index f5c99a37b2d98fab176b97562e83c587ac3895b5..dc2105ae26b85c20bdec58a95ff14bf898534898 100644 (file)
@@ -1470,7 +1470,7 @@ int matrix::division_free_elimination(const bool det)
                                sign = -sign;
                        for (unsigned r2=r0+1; r2<m; ++r2) {
                                for (unsigned c=c0+1; c<n; ++c)
-                                       this->m[r2*n+c] = (this->m[r0*n+c0]*this->m[r2*n+c] - this->m[r2*n+c0]*this->m[r0*n+c]).expand();
+                                       this->m[r2*n+c] = (this->m[r0*n+c0]*this->m[r2*n+c] - this->m[r2*n+c0]*this->m[r0*n+c]).normal();
                                // fill up left hand side with zeros
                                for (unsigned c=r0; c<=c0; ++c)
                                        this->m[r2*n+c] = _ex0;