fftpack.tests.test_basic

Module Contents

Functions

_assert_close_in_norm(x,y,rtol,size,rdt)
random(size)
get_mat(n)
direct_dft(x)
direct_idft(x)
direct_dftn(x)
direct_idftn(x)
direct_rdft(x)
direct_irdft(x)
_assert_close_in_norm(x, y, rtol, size, rdt)
random(size)
get_mat(n)
direct_dft(x)
direct_idft(x)
direct_dftn(x)
direct_idftn(x)
direct_rdft(x)
direct_irdft(x)
class _TestFFTBase
setup_method()
test_definition()
test_n_argument_real()
_test_n_argument_complex()
test_djbfft()
test_invalid_sizes()
test__is_safe_size()
class TestDoubleFFT
setup_method()
class TestSingleFFT
setup_method()
test_notice()
class TestFloat16FFT
test_1_argument_real()
test_n_argument_real()
class _TestIFFTBase
setup_method()
test_definition()
test_definition_real()
test_djbfft()
test_random_complex()
test_random_real()
test_size_accuracy()
test_invalid_sizes()
class TestDoubleIFFT
setup_method()
class TestSingleIFFT
setup_method()
class _TestRFFTBase
setup_method()
test_definition()
test_djbfft()
test_invalid_sizes()
class MockSeries(data)
__init__(data)
__getattr__(item)
test_non_ndarray_with_dtype()
class TestRFFTDouble
setup_method()
class TestRFFTSingle
setup_method()
class _TestIRFFTBase
setup_method()
test_definition()
test_djbfft()
test_random_real()
test_size_accuracy()
test_invalid_sizes()
class TestIRFFTDouble
setup_method()
class TestIRFFTSingle
setup_method()
class Testfft2
setup_method()
test_regression_244()

fft returns wrong result with axes parameter.

test_invalid_sizes()
class TestFftnSingle
setup_method()
test_definition()
test_size_accuracy()
test_definition_float16()
test_float16_input()
class TestFftn
setup_method()
test_definition()
test_axes_argument()
test_shape_argument()
test_shape_axes_argument()
test_shape_axes_argument2()
test_shape_argument_more()

Test that fftn raises ValueError when s.shape is longer than x.shape

test_invalid_sizes()
class _TestIfftn
setup_method()
test_definition()
test_random_complex()
test_invalid_sizes()
class TestIfftnDouble
class TestIfftnSingle
class TestLongDoubleFailure
setup_method()
test_complex()
test_real()
class FakeArray(data)
__init__(data)
class FakeArray2(data)
__init__(data)
__array__()
class TestOverwrite

Check input overwrite behavior of the FFT functions

_check(x, routine, fftsize, axis, overwrite_x, should_overwrite)
_check_1d(routine, dtype, shape, axis, overwritable_dtypes)
test_fft()
test_ifft()
test_rfft()
test_irfft()
_check_nd_one(routine, dtype, shape, axes, overwritable_dtypes)
_check_nd(routine, dtype, overwritable)
test_fftn()
test_ifftn()