cupy.atleast_1d#

cupy.atleast_1d(*arys)[source]#

Converts arrays to arrays with dimensions >= 1.

Parameters:

arys (tuple of arrays) – Arrays to be converted. All arguments must be cupy.ndarray objects. Only zero-dimensional array is affected.

Returns:

If there are only one input, then it returns its converted version. Otherwise, it returns a list of converted arrays.