Prevent commutation of elements within non-commutative matrix multiplication.
Subject: Prevent commutation of elements within non-commutative matrix multiplication.
From: Matthew Everitt
Date: Sat, 5 Nov 2011 14:42:12 +0000
Hi,
Thank you! That was exactly what I was loking for. I must have been reading
the wrong sections of the manual!
Thanks again,
Matthew
On Wed, Nov 2, 2011 at 9:29 PM, Matthew Everitt <mat.everitt at gmail.com>wrote:
> Hi,
>
> I'm reasonably new to working with matrices in maxima, and I'm having a
> problem I hope someone can help me with.
> It seems that the inner product is assuming that the elements of a matrix
> commute, so running:
>
> declare([a,b],nonscalar)$
> display2d:false$
> A:matrix([0,a],[b,0])$
> A.A;
>
> gives
> matrix([a*b,0],[0,a*b])
> rather than matrix([a.b,0],[0,b.a]), which is what I need. Is there any
> way around this?
>
> Thanks,
> Matthew Everitt
>