Back to Numerical Arrays (NumPy)
np.vecmat
Vector-matrix product.
Syntax
np.vecmat(x1, x2)
Description
Vector-matrix product. NumPy 2.0 addition. Computes the vector-matrix product of x1 and x2. Equivalent to matmul with 1D @ 2D broadcasting.
Parameters
| Name | Description |
|---|---|
| x1 | - Vector (..., M) |
| x2 | - Matrix (..., M, N) |
Returns
Promise<NDArray>