[GiNaC-list] non-commutative symbols (again)

Jan jrheinlaender at gmx.de
Sun Feb 20 18:57:11 CET 2011

Hi, Alexei,

thank you for your detailed help.

> See the tutorial (section titled `Non-commutative objects') for more details
> and examples.
I looked at it and set the return_type() of my non-commutative symbol
class to noncommutative_composite. If I understand the documentation
correctly, this means that the ncsymbol does not commutate with
anything. The advantage being that I can substitute it with any
non-commutative object, not just with matrices.

Is that correct, or do I need to got the return_type_tinfo() way?

I won't ever be substituting the ncsymbol with something commutative in
my application so that shouldn't be a problem.

Thanks for your help!

More information about the GiNaC-list mailing list