Back to Numerical Arrays (NumPy)
np.ravelMultiIndex
Convert a tuple of coordinate arrays into flat indices.
Syntax
np.ravelMultiIndex(coords, shape)
Description
Convert a tuple of coordinate arrays into flat indices.
Parameters
| Name | Description |
|---|---|
| coords | - Array of coordinate arrays, one per dimension |
| shape | - Shape of the array |
Returns
Promise<number[]>