From: Chris Dams Date: Wed, 4 Jan 2006 20:47:54 +0000 (+0000) Subject: dirac_slash should give something with non-zero metric. X-Git-Tag: release_1-4-0~116 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=37f28c653db4b48a89641b0d195f8f0c3c7ab426 dirac_slash should give something with non-zero metric. --- 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()