dask 2021.10.0

ParametersReturnsBackRef
atleast_3d(*arys)

This docstring was copied from numpy.atleast_3d.

Some inconsistencies with the Dask version may exist.

Parameters

arys1, arys2, ... : array_like

One or more array-like sequences. Non-array inputs are converted to arrays. Arrays that already have three or more dimensions are preserved.

Returns

res1, res2, ... : ndarray

An array, or list of arrays, each with a.ndim >= 3 . Copies are avoided where possible, and views with three or more dimensions are returned. For example, a 1-D array of shape (N,) becomes a view of shape (1, N, 1) , and a 2-D array of shape (M, N) becomes a view of shape (M, N, 1) .

View inputs as arrays with at least three dimensions.

See Also

atleast_1d
atleast_2d

Examples

This example is valid syntax, but we were not able to check execution
>>> np.atleast_3d(3.0)  # doctest: +SKIP
array([[[3.]]])
This example is valid syntax, but we were not able to check execution
>>> x = np.arange(3.0)  # doctest: +SKIP
... np.atleast_3d(x).shape # doctest: +SKIP (1, 3, 1)
This example is valid syntax, but we were not able to check execution
>>> x = np.arange(12.0).reshape(4,3)  # doctest: +SKIP
... np.atleast_3d(x).shape # doctest: +SKIP (4, 3, 1)
This example is valid syntax, but we were not able to check execution
>>> np.atleast_3d(x).base is x.base  # x is a reshape, so not base itself  # doctest: +SKIP
True
This example is valid syntax, but we were not able to check execution
>>> for arr in np.atleast_3d([1, 2], [[1, 2]], [[[1, 2]]]):  # doctest: +SKIP
...  print(arr, arr.shape) # doctest: +SKIP ... [[[1] [2]]] (1, 2, 1) [[[1] [2]]] (1, 2, 1) [[[1 2]]] (1, 1, 2)
See :

Back References

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

dask.array.routines.atleast_1d 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#62
type: <class 'function'>
Commit: