Give the matrices:
A = {{a11, a12, a13, a14},
{a21, a22, a23, a24},
{a31, a32, a33, a34}};
B = {{b11, b12, b13},
{b21, b22, b23},
{b31, b32, b33}};
by calculating:
Transpose[A].B.A
it is clear that a 4x4 matrix is obtained whose first entry is:
a11 (a11 b11 + a21 b21 + a31 b31) +
a21 (a11 b12 + a21 b22 + a31 b32) +
a31 (a11 b13 + a21 b23 + a31 b33)
My goal is to write a series of nested for cycles to get the 4x4 entries of that matrix.
After many unsuccessful attempts I am here to ask if someone could give me a hand or show me some book where I could find this algorithm written.
Thank you!