Labs · Vectors

Matrix multiplication

Every cell of the product is one dot product — rows of A against columns of B.

Try this ▶ Change m and n to different sizes and watch matrix C reshape — C always has m rows and n columns, regardless of the shared middle dimension k.

A times B, cell by cell

Reads /api/text-representation/foundations/matmul — loading

Computing…

Matrix multiplication — Labs — TransformerLab