keisoku

Matrix Multiplication Calculator

Multiply an m×n matrix by an n×p matrix to get the m×p product, shown as a table with size checks.

Input

Enter matrix A and matrix B. Each line is one row; separate elements with spaces or commas.

Result

Product size

2×2

Size of A

2×3

Size of B

3×2

Size of A·B

2×2

Product matrix A·B

5864
139154

How it works

  • The product C = A·B is defined when A is an m×n matrix and B is an n×p matrix, and the result is an m×p matrix.
  • Each entry is cᵢⱼ = Σₖ aᵢₖ·bₖⱼ, the dot product of row i of A with column j of B.
  • Multiplication is only possible when the number of columns of A equals the number of rows of B; otherwise the sizes are incompatible.
  • Enter one matrix row per line, separating elements with spaces or commas. Every row must have the same number of columns.
  • Matrix multiplication is not commutative in general: A·B and B·A need not be equal.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Matrix Multiplication Calculator