Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Matrix Multiplication (with a twist)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68985] Re: [mg68951] Matrix Multiplication (with a twist)
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 26 Aug 2006 02:04:20 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

A = {{e,f},{g,h}};

B = {{a,b},{c,d}};

Inner[NonCommutativeMultiply, A, B]

{{e**a + f**c, e**b + f**d}, {g**a + h**c, g**b + h**d}}


Bob Hanlon

---- Bruce Colletti <vze269bv at verizon.net> wrote: 
> For matrix A = {{e,f},{g,h}} and B = {{a,b},{c,d}}, Mathematica returns their product 
> 
> A.B = {{ae+cf,be+df},{ag+ch,bg+dh}}
> 
> However, I want to treat multiplication of numeric variables as noncommutative in order to instead obtain the result
> 
> {{ea+fc, eb+fd},{ga+hc,gb+hd}}
> 
> How would this be done in v5.2?  Thanks.
> 
> Bruce
> 



  • Prev by Date: Selecting Lists Without Null Results
  • Next by Date: Re: Why polynomial Can't output as Number?
  • Previous by thread: Re: Matrix Multiplication (with a twist)
  • Next by thread: Re: Matrix Multiplication (with a twist)