dask 2021.10.0

ParametersReturnsBackRef
atleast_1d(*arys)

This docstring was copied from numpy.atleast_1d.

Some inconsistencies with the Dask version may exist.

Scalar inputs are converted to 1-dimensional arrays, whilst higher-dimensional inputs are preserved.

Parameters

arys1, arys2, ... : array_like

One or more input arrays.

Returns

ret : ndarray

An array, or list of arrays, each with a.ndim >= 1 . Copies are made only if necessary.

Convert inputs to arrays with at least one dimension.

See Also

atleast_2d
atleast_3d

Examples

This example is valid syntax, but we were not able to check execution
>>> np.atleast_1d(1.0)  # doctest: +SKIP
array([1.])
This example is valid syntax, but we were not able to check execution
>>> x = np.arange(9.0).reshape(3,3)  # doctest: +SKIP
... np.atleast_1d(x) # doctest: +SKIP array([[0., 1., 2.], [3., 4., 5.], [6., 7., 8.]])
This example is valid syntax, but we were not able to check execution
>>> np.atleast_1d(x) is x  # doctest: +SKIP
True
This example is valid syntax, but we were not able to check execution
>>> np.atleast_1d(1, [3, 4])  # doctest: +SKIP
[array([1]), array([3, 4])]
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

dask.array.routines.atleast_3d dask.array.routines.atleast_2d

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /dask/array/routines.py#100
type: <class 'function'>
Commit: