caterva.asarray#

caterva.asarray(ndarray, **kwargs)#

Convert the input to an array.

Parameters
array: array_like

An array supporting the python buffer protocol and the numpy array interface.

Returns
out: NDArray

A Caterva array interpretation of ndarray.

Other Parameters
kwargs: dict, optional

Keyword arguments that are supported by the caterva.empty() constructor.