]> www.ginac.de Git - ginac.git/blobdiff - ginac/tensor.cpp
\18* class matrix: solve() doesn't call algorithms redundantly any more and
[ginac.git] / ginac / tensor.cpp
index b180ec9e9a7e6966cdabb06ddbdd686e201aa479..c14b50d74499642752135ee25a602616284ff8dd 100644 (file)
@@ -27,7 +27,9 @@
 #include "idx.h"
 #include "indexed.h"
 #include "relational.h"
+#include "lst.h"
 #include "numeric.h"
+#include "print.h"
 #include "archive.h"
 #include "utils.h"
 #include "debugmsg.h"
@@ -333,7 +335,7 @@ bool tensmetric::contract_with(exvector::iterator self, exvector::iterator other
 
        // If contracting with the delta tensor, let the delta do it
        // (don't raise/lower delta indices)
-       if (is_ex_exactly_of_type(other->op(0), tensdelta))
+       if (is_ex_of_type(other->op(0), tensdelta))
                return false;
 
        // Try to contract first index