Back to Numerical Arrays (NumPy)
np.asanyarray
Convert the input to an array, passing through ndarrays unchanged.
Syntax
np.asanyarray(a, options?)
Description
Convert the input to an array, passing through ndarrays unchanged. In NumPy, this preserves subclasses of ndarray. In numwasm, there are no subclasses, so this behaves identically to asarray.
Parameters
| Name | Description |
|---|---|
| a | - Input data |
| options(optional) | - Optional configuration (dtype) |
Returns
Promise<NDArray>