Equana

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

NameDescription
ALeft matrix (m × k)
BRight matrix (k × n)

Returns

Product matrix (m × n)

Examples

Try It
>> gemm([1, 2; 3, 4], [5, 6; 7, 8])