From 37f28c653db4b48a89641b0d195f8f0c3c7ab426 Mon Sep 17 00:00:00 2001 From: Chris Dams Date: Wed, 4 Jan 2006 20:47:54 +0000 Subject: [PATCH] dirac_slash should give something with non-zero metric. --- ginac/clifford.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ginac/clifford.cpp b/ginac/clifford.cpp index d25047ac..e166d084 100644 --- a/ginac/clifford.cpp +++ b/ginac/clifford.cpp @@ -830,7 +830,10 @@ ex dirac_slash(const ex & e, const ex & dim, unsigned char rl) // Slashed vectors are actually stored as a clifford object with the // vector as its base expression and a (dummy) index that just serves // for storing the space dimensionality - return clifford(e, varidx(0, dim), 0, rl); + + static varidx xi((new symbol)->setflag(status_flags::dynallocated), dim), + chi((new symbol)->setflag(status_flags::dynallocated), dim); + return clifford(e, varidx(0, dim), indexed((new minkmetric)->setflag(status_flags::dynallocated), symmetric2(), xi, chi), rl, true); } /** Check whether a given tinfo key (as returned by return_type_tinfo() -- 2.44.0