cupynumeric.asarray#
- cupynumeric.asarray( ) ndarray#
Convert the input to an array.
- 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.
- Returns:
out – Array interpretation of a.
- Return type:
Notes
The input array will be copied it is a view of another NumPy ndarray or if its datatype and the requested datatype are different.
See also
- Availability:
Multiple GPUs, Multiple CPUs