dask 2021.10.0

NotesParametersReturnsBackRef
empty_like(a, dtype=None, order='C', chunks=None, name=None, shape=None)

Notes

This function does not initialize the returned array; to do that use zeros_like or ones_like instead. It may be marginally faster than the functions that do set the array values.

Parameters

a : array_like

The shape and data-type of a define these same attributes of the returned array.

dtype : data-type, optional

Overrides the data type of the result.

order : {'C', 'F'}, optional

Whether to store multidimensional data in C- or Fortran-contiguous (row- or column-wise) order in memory.

chunks : sequence of ints

The number of samples on each block. Note that the last block will have fewer samples if len(array) % chunks != 0 .

name : str, optional

An optional keyname for the array. Defaults to hashing the input keyword arguments.

shape : int or sequence of ints, optional.

Overrides the shape of the result.

Returns

out : ndarray

Array of uninitialized (arbitrary) data with the same shape and type as a.

Return a new array with the same shape and type as a given array.

See Also

empty

Return a new uninitialized array.

ones

Return a new array setting values to one.

ones_like

Return an array of ones with shape and type of input.

zeros

Return a new array setting values to zero.

zeros_like

Return an array of zeros with shape and type of input.

Examples

See :

Back References

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

dask.array.creation.full_like dask.array.wrap.full dask.array.routines.array dask.array.creation.ones_like dask.utils.empty dask.array.creation.zeros_like

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