1

The recent question about generalizing Dot for list of matrices had a nice solution/comment using Inner.

Briefly, we have 6 matrices:

{a, b, c, x, y, z} = RandomReal[{0, 1}, {2, 2}] & /@ Range[6]

And we want to get three matrices {a.x, b.y, c.z}, then possible (per comment to original question) solution would be

Inner[Dot, {a, b, c}, {x, y, z}, List]

But it fails, complaining:

Length 2 of dimension 3 in

Why?

BlacKow
  • 6,428
  • 18
  • 32

0 Answers0