MathGroup Archive 2005

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

Search the Archive

tensor product

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61738] tensor product
  • From: André Hautot <AHautot at ulg.ac.be>
  • Date: Thu, 27 Oct 2005 05:54:32 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In quantum physics one often needs the matrix representation of tensor 
products

Outer[Times,{{1,2},{3,4}},{{a,b},{c,d}}]//MatrixForm

outputs something like this:

{{{{a,b},{c,d}},{{2a,2b},{2c,2d}},{{{3a,3b},{3c,3d}},{{4a,4b},{4c,4d}}}}

what I need is

{{a,b,2a,2b},{c,d,2c,2d},{3a,3b,4a,4b},{3c,3d,4c,4d}}

How to get this?

Thanks in advance

ahautot at ulg.ac.be




  • Prev by Date: Re: Integrate vs Nintegrate for impulsive functions
  • Next by Date: Re: Set construction with condition
  • Previous by thread: Re: Slow simplify[], integrate[] in 5.2 for Mac
  • Next by thread: Re: tensor product