scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturns
_init_nd_shape_and_axes(x, shape, axes)

Returns the shape and axes in a standard form, taking into account negative values and checking for various potential errors.

Parameters

x : array_like

The input array.

shape : int or array_like of ints or None

The shape of the result. If both :None:None:`shape` and :None:None:`axes` (see below) are None, :None:None:`shape` is x.shape ; if :None:None:`shape` is None but :None:None:`axes` is not None, then :None:None:`shape` is numpy.take(x.shape, axes, axis=0) . If :None:None:`shape` is -1, the size of the corresponding dimension of x is used.

axes : int or array_like of ints or None

Axes along which the calculation is computed. The default is over all axes. Negative indices are automatically converted to their positive counterparts.

Returns

shape : array

The shape of the result. It is a 1-D integer array.

axes : array

The shape of the result. It is a 1-D integer array.

Handle shape and axes arguments for N-D transforms.

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 : /scipy/fft/_helper.py#70
type: <class 'function'>
Commit: