NDArray::atleast_1d
public static function atleast_1d(NDArray|array|float|int $array): NDArray;
Convert inputs to arrays with at least one dimension.
Scalar inputs are converted to 1-dimensional arrays, whilst higher-dimensional inputs are preserved.
Notes
tip
GPU SUPPORTED
This operation is supported by GPU (VRAM).