jax.numpy.asarrayΒΆ
-
jax.numpy.asarray(a, dtype=None, order=None)[source]ΒΆ Convert the input to an array.
LAX-backend implementation of
asarray().Original docstring below.
- Parameters
a (array_like) β Input data, in any form that can be converted to an array. This includes lists, lists of tuples, tuples, tuples of tuples, tuples of lists and ndarrays.
dtype (data-type, optional) β By default, the data-type is inferred from the input data.
order ({'C', 'F'}, optional) β Whether to use row-major (C-style) or column-major (Fortran-style) memory representation. Defaults to βCβ.
- Returns
out β Array interpretation of a. No copy is performed if the input is already an ndarray with matching dtype and order. If a is a subclass of ndarray, a base class ndarray is returned.
- Return type