Back to NDArray Operations
mul
Linear algebra multiplication. For 2D matrices: matmul. For 2D×1D: mat-vec.
Syntax
mul(a: NDArray, b: NDArray) → r
Backends
TypeScriptnumwa
Description
Linear algebra multiplication. For 2D matrices: matmul. For 2D×1D: mat-vec. For 1D×1D vectors: element-wise. Scalar broadcasting supported.
Parameters
| Name | Description |
|---|---|
| a | Left operand (NDArray or scalar) |
| b | Right operand (NDArray or scalar) |
Returns
NDArray result