Suppose I create a list of matrices:
data = Table[RandomInteger[5, {2, 2}], 5]
Which produces:
{{{0, 5}, {2, 1}}, {{5, 2}, {2, 1}}, {{4, 4}, {0, 1}}, {{5, 3}, {2,
5}}, {{2, 0}, {5, 0}}}
How can I quickly take the product of these five matrices?
Suppose I create a list of matrices:
data = Table[RandomInteger[5, {2, 2}], 5]
Which produces:
{{{0, 5}, {2, 1}}, {{5, 2}, {2, 1}}, {{4, 4}, {0, 1}}, {{5, 3}, {2,
5}}, {{2, 0}, {5, 0}}}
How can I quickly take the product of these five matrices?
Comments
Post a Comment