Matrix Multiplication (Same dimension)

256 Views Asked by At

How do you multiply two of the same matrix with same dimension like example below? Do I need to transverse the second matrix or dot product?

3x1 * 3x1

$$ [1,2,3]*[4,5,6]\\ [4,5,6]*[1,2,3] $$

1

There are 1 best solutions below

4
On BEST ANSWER

It is strictly speaking not defined.

The definition of matrix multiplication of two matrices $AB$ requires $A$ is of size $m$ by $p$ and $B$ is of size $p$ by $n$ and the produce is of size $m$ by $n$.

In some programming language such as Python, it might be defined as the dot product when you deal with $2$ vectors.