microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
katas/content/linear_algebra/multiplication/solution.md
6lines · modecode
| 1 | Following the definition, you can calculate the product of these two matrices as follows: |
| 2 | |
| 3 | $$\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \cdot \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} = $$ |
| 4 | $$= \begin{bmatrix} 1 \cdot 5 + 2 \cdot 7 & 1 \cdot 6 + 2 \cdot 8 \\ 3 \cdot 5 + 4 \cdot 7 & 3 \cdot 6 + 4 \cdot 8 \end{bmatrix} = \begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix}$$ |
| 5 | |
| 6 | @[solution]({"id": "linear_algebra__multiplication_solution", "codePath": "Solution.qs"}) |
| 7 | |