Back to NDArray Operations
matmul
Matrix multiplication.
Syntax
matmul(a: NDArray, b: NDArray) → r
Backends
TypeScriptnumwa
Description
Matrix multiplication.
Parameters
| Name | Description |
|---|---|
| a | Left matrix (m×k) |
| b | Right matrix (k×n) |
Returns
Result matrix (m×n)
Examples
Try It
>> matmul(reshape([1,2,3,4], 2, 2), reshape([5,6,7,8], 2, 2))