Back to Numerical Arrays (NumPy)
np.computeBroadcastStrides
Compute the strides needed to broadcast an array to a target shape.
Syntax
np.computeBroadcastStrides(arr, targetShape)
Description
Compute the strides needed to broadcast an array to a target shape. This is mainly for internal use.
Parameters
| Name | Description |
|---|---|
| arr | - Array to broadcast |
| targetShape | - Target shape |
Returns
Promise<number[] | null>