dask 2021.10.0

ParametersReturnsBackRef
broadcast_to(x, shape, chunks=None, meta=None)

Parameters

x : array_like

The array to broadcast.

shape : tuple

The shape of the desired array.

chunks : tuple, optional

If provided, then the result will use these chunks instead of the same chunks as the source array. Setting chunks explicitly as part of broadcast_to is more efficient than rechunking afterwards. Chunks are only allowed to differ from the original shape along dimensions that are new on the result or have size 1 the input array.

meta : empty ndarray

empty ndarray created with same NumPy backend, ndim and dtype as the Dask Array being created (overrides dtype)

Returns

broadcast : dask array

Broadcast an array to a new shape.

See Also

numpy.broadcast_to

func

Examples

See :

Back References

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

dask.array.overlap.sliding_window_view dask.array.core.broadcast_arrays dask.array.creation.tile

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/core.py#4546
type: <class 'function'>
Commit: