How to multiply matrices

To multiply A (m×n) by B (n×p), compute AB (m×p) with (AB)_{ij} = sum_{k=1}^{n} a_{ik} b_{kj}.