Back to Numerical Arrays (NumPy)
np.matmul
Matrix multiplication of two arrays.
Syntax
np.matmul(a, b)
Description
Matrix multiplication of two arrays. For 2-D arrays: regular matrix multiplication. For N-D arrays: broadcast over batch dimensions, matmul on last two.
Parameters
| Name | Description |
|---|---|
| a | - First array (..., M, K) |
| b | - Second array (..., K, N) |
Returns
Promise<NDArray>