Enter Matrices
Supports decimals and simple fractions like 3/4Results
Export & Utilities
Example data table
| 2 | 0 | 1 |
| -1 | 3 | 4 |
| 1 | 5 |
| 2 | -1 |
| 0 | 3 |
Preset: Identity × Matrix (3×3)
Quick sanity check: I3 · M = M
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 0 | 0 | 1 |
| 2 | -1 | 4 |
| 0.5 | 3 | 0 |
| 7 | 2 | -3 |
Preset: 2D Rotation 45° × Points (2×2 · 2×3)
Rotate 3 points by 45° using a standard rotation matrix.
| 0.70710678 | -0.70710678 |
| 0.70710678 | 0.70710678 |
| 1 | 0 | -1 |
| 0 | 1 | 2 |
Formula used
If A is m×n and B is n×p, the product C = AB is m×p with entries:
cij = Σnk=1 aik · bkj
Each result cell is a dot product between a row of A and a column of B.
How to use
- Choose dimensions so columns of A equal rows of B.
- Click “Build inputs” to refresh the entry grids.
- Enter numbers; decimals and simple fractions like 5/8 work.
- Set precision for rounding the displayed outputs.
- Press “Calculate” to see results and per-cell steps.
- Export the result table as CSV or PDF if needed.
How to calculate FLOPs for matrix multiplication
For A of size m×n and B of size n×p:
- Multiplications = m × n × p
- Additions = m × p × (n − 1)
- Exact FLOPs = mnp + mp(n − 1) = 2mnp − mp
- Approximate FLOPs (HPC convention) = 2mnp
Note: Some references count a fused multiply–add (FMA) as 2 FLOPs. The exact count above uses n−1 additions per dot product.