Matrix Multiplication
Matrix Multiplication (2x2)
Multiply two 2x2 matrices A and B. Each entry C[i,j] of the result is the dot product of row i of A with column j of B, computed term by term with a running sum. The state panel records the running sum for each output entry and adds the final result once all terms are accumulated.
matrix multiplication
C = A · B where A is m×p and B is p×n yields an m×n matrix C. Entry C[i,j] = sum of A[i,k] * B[k,j] for k = 1..p.
inner dimension
The number of columns in A must equal the number of rows in B (the inner dimension p). The result has the outer dimensions: rows of A by columns of B.