View inputs as arrays with at least two dimensions.
Parameters: | array1, array2, ... : array_like
|
---|---|
Returns: | res, res2, ... : ndarray
|
See also
Examples
>>> numpy.atleast_2d(3.0)
array([[ 3.]])
>>> x = numpy.arange(3.0)
>>> numpy.atleast_2d(x)
array([[ 0., 1., 2.]])
>>> numpy.atleast_2d(x).base is x
True
>>> np.atleast_2d(1, [1, 2], [[1, 2]])
[array([[1]]), array([[1, 2]]), array([[1, 2]])]