numpy 1.22.4 Pypi GitHub Homepage
Other Docs
Parameters
copyto(dst, src, casting='same_kind', where=True)

Raises a TypeError if the :None:None:`casting` rule is violated, and if where is provided, it selects which elements to copy.

versionadded

Parameters

dst : ndarray

The array into which values are copied.

src : array_like

The array from which values are copied.

casting : {'no', 'equiv', 'safe', 'same_kind', 'unsafe'}, optional

Controls what kind of data casting may occur when copying.

  • 'no' means the data types should not be cast at all.

  • 'equiv' means only byte-order changes are allowed.

  • 'safe' means only casts which can preserve values are allowed.

  • 'same_kind' means only safe casts or casts within a kind, like float64 to float32, are allowed.

  • 'unsafe' means any data conversions may be done.

where : array_like of bool, optional

A boolean array which is broadcasted to match the dimensions of :None:None:`dst`, and selects elements to copy from src to :None:None:`dst` wherever it contains the value True.

Copies values from one array to another, broadcasting as necessary.

Examples

See :

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


GitHub : None#None
type: <class 'builtin_function_or_method'>
Commit: