Dear GiNaCers, The line if (return_type_tinfo() & 0xffffff00U != TINFO_clifford) { that occurs in ncmul::conjugate() needs to be changed into if ((return_type_tinfo() & 0xffffff00U) != TINFO_clifford) { for correct operator precedence. Best, Chris
Hi! On Thu, Jul 01, 2004 at 04:40:59PM +0000, Chris Dams wrote:
The line
if (return_type_tinfo() & 0xffffff00U != TINFO_clifford) {
that occurs in ncmul::conjugate() needs to be changed into
if ((return_type_tinfo() & 0xffffff00U) != TINFO_clifford) {
for correct operator precedence.
Yup. But why does ncmul need to know about clifford anyway? Bye, Christian -- / Physics is an algorithm \/ http://www.uni-mainz.de/~bauec002/
Dear Christian,
Yup. But why does ncmul need to know about clifford anyway?
Because on clifford objects complex conjugation works as hermitian conjugation. ncmul is the only class that can take care of swapping the sequence around as in (ncmul(gamma~mu,gamma~nu))^dagger = ncmul((gamma~nu)^dagger,(gamma~mu)^dagger). Best, Chris
Hi! On Thu, Jul 01, 2004 at 06:53:51PM +0000, Chris Dams wrote:
Because on clifford objects complex conjugation works as hermitian conjugation. ncmul is the only class that can take care of swapping the sequence around as in
(ncmul(gamma~mu,gamma~nu))^dagger = ncmul((gamma~nu)^dagger,(gamma~mu)^dagger).
Shouldn't this work in the same way for matrix, color, and possibly for user-defined classes too? Bye, Christian -- / Physics is an algorithm \/ http://www.uni-mainz.de/~bauec002/
Dear Christian, On Mon, 2 Aug 2004, Christian Bauer wrote:
(ncmul(gamma~mu,gamma~nu))^dagger = ncmul((gamma~nu)^dagger,(gamma~mu)^dagger).
Shouldn't this work in the same way for matrix, color, and possibly for user-defined classes too?
That is a good question. At the moment complex conjugation of matrices complex conjugates their entries but does not do transposition. When I wrote complex conjugation I only took into account my own experience with complex conjugation of strings of Dirac matrices and this told me that doing hermitian conjugation on them would be useful. However, I almost (?) never use matrices in GiNaC. Same for the color algebra. If you think that hermitian conjugation is the most usefull way of complex conjugating them, I could write a patch to do it. Personally I do not care very much because I hardly use GiNaCs matrices and color objects. Best, Chris
participants (3)
-
Chris Dams
-
Christian Bauer
-
Christian Bauer