This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / signal / _signaltools / _init_freq_conv_axes

function

scipy.signal._signaltools:_init_freq_conv_axes

source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_signaltools.py:425

Signature

def _init_freq_conv_axes(in1, in2, mode, axes, sorted_axes = False)

Summary

Handle the axes argument for frequency-domain convolution.

Extended Summary

Returns the inputs and axes in a standard form, eliminating redundant axes, swapping the inputs if necessary, and checking for various potential errors.

Parameters

in1 : array

First input.

in2 : array

Second input.

mode : str {'full', 'valid', 'same'}, optional

A string indicating the size of the output. See the documentation fftconvolve for more information.

axes : list of ints

Axes over which to compute the FFTs.

sorted_axes : bool, optional

If True, sort the axes. Default is False, do not sort.

Returns

in1 : array

The first input, possible swapped with the second input.

in2 : array

The second input, possible swapped with the first input.

axes : list of ints

Axes over which to compute the FFTs.

Aliases

  • scipy.signal._signaltools._init_freq_conv_axes