numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturns
_divide_by_count(a, b, out=None)

Parameters

a : {ndarray, numpy scalar}

Numerator. Expected to be of inexact type but not checked.

b : {ndarray, numpy scalar}

Denominator.

out : ndarray, optional

Alternate output array in which to place the result. The default is None ; if provided, it must have the same shape as the expected output, but the type will be cast if necessary.

Returns

ret : {ndarray, numpy scalar}

The return value is a/b. If a was an ndarray the division is done in place. If a is a numpy scalar, the division preserves its type.

Compute a/b ignoring invalid results. If a is an array the division is done in place. If a is a scalar, then its type is preserved in the output. If out is None, then then a is used instead so that the division is in place. Note that this is only called with a an inexact type.

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 : /numpy/lib/nanfunctions.py#187
type: <class 'function'>
Commit: