Back to Linear Algebra
gemm
General matrix-matrix multiply. Computes A * B.
Syntax
gemm(A, B) → r
Backends
TypeScriptOpenBLASNative BinaryWebAssembly
Description
General matrix-matrix multiply. Computes A * B.
Parameters
| Name | Description |
|---|---|
| A | Left matrix (m × k) |
| B | Right matrix (k × n) |
Returns
Product matrix (m × n)
Examples
Try It
>> gemm([1, 2; 3, 4], [5, 6; 7, 8])