iarray.numpy2iarray#

iarray.numpy2iarray(arr: ndarray, cfg: Optional[Config] = None, **kwargs) IArray#

Convert a NumPy array into an ironArray array.

cfg and kwargs are the same than for empty().

Parameters

arr (np.ndarray) – The array to convert.

Returns

The new ironArray array.

Return type

IArray container

See also

iarray2numpy

Convert an ironArray array into a NumPy array.