Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Matrix multiplication (again !)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110590] Re: Matrix multiplication (again !)
  • From: Teodoro <jwheeler51 at gmail.com>
  • Date: Sat, 26 Jun 2010 08:41:59 -0400 (EDT)
  • References: <i04956$5ld$1@smc.vnet.net>

On Jun 26, 9:10 am, Teodoro <jwheele... at gmail.com> wrote:
> Sorry about the question but there are 195 post on the topic (now 196 ...).
> So ...
> is it possible in Mtahematica to have something similar to
> Product[T[r[[i]],r[[i-1]],x[[i]]-x[[i-1]],w],{i,2,8}];
> where T[aL, a0, L, w] is a matrix function of the four variables, that
> can have the same behaviour as the Dot function ?
> What if I don't know in advance how many matrices I have to multiply ?
> I need an operator that does
> Dot[T[r[[i]],r[[i-1]],x[[i]]-x[[i-1]],w],{i,2,8}];
> Thanks
> Teodoro Marinucci

I've found a way:
Apply[Dot, Table[T[r[[p]], r[[p - 1]], x[[p]] - x[[p - 1]], \[Omega]],
{p, 2, 8}]]


  • Prev by Date: Particle Filters
  • Next by Date: Re: Newby Q: How to specify reals
  • Previous by thread: Matrix multiplication (again !)
  • Next by thread: Sum of terms --> list