cupy.atleast_2d#
- cupy.atleast_2d(*arys)[source]#
Converts arrays to arrays with dimensions >= 2.
If an input array has dimensions less than two, then this function inserts new axes at the head of dimensions to make it have two dimensions.
- Parameters:
arys (tuple of arrays) – Arrays to be converted. All arguments must be
cupy.ndarray
objects.- Returns:
If there are only one input, then it returns its converted version. Otherwise, it returns a list of converted arrays.
See also