dedalus.tests.test_transforms

Module Contents

comm
N_range = [8]
dealias_range
jacobi_range
dtypes
test_real_fourier_libraries_backward(N, dealias, dtype, library)

Tests that fast real Fourier transforms match matrix transforms.

test_real_fourier_libraries_forward(N, dealias, dtype, library)

Tests that fast real Fourier transforms match matrix transforms.

test_CF_scalar_roundtrip(N, dealias)
test_RF_scalar_roundtrip(N, dealias)
test_J_scalar_roundtrip(a, b, N, dealias, dtype)
test_chebyshev_libraries_backward(N, alpha, dealias, dtype, library)

Tests that fast Chebyshev transforms match matrix transforms.

test_chebyshev_libraries_forward(N, alpha, dealias, dtype, library)

Tests that fast Chebyshev transforms match matrix transforms.

build_CF_CF(Nx, Ny, dealias_x, dealias_y)
test_CF_CF_scalar_roundtrip(Nx, Ny, dealias_x, dealias_y)
build_RF_RF(Nx, Ny, dealias_x, dealias_y)
test_RF_RF_scalar_roundtrip(Nx, Ny, dealias_x, dealias_y)
build_CF_J(a, b, Nx, Ny, dealias_x, dealias_y)
test_CF_J_scalar_roundtrip(a, b, Nx, Ny, dealias_x, dealias_y)
test_CF_J_vector_roundtrip(a, b, Nx, Ny, dealias_x, dealias_y)
test_CF_J_1d_vector_roundtrip(a, b, Nx, Ny, dealias_x, dealias_y)
build_sphere_2d(Nphi, Ntheta, radius, dealias, dtype)
build_sphere_3d(Nphi, Ntheta, radius, dealias, dtype)
Nphi_range = [16]
Ntheta_range = [16]
radius_range = [1.5]
basis_range
dealias_range
dtype_range
layout_range = ['g', 'c']
rank_range = [0, 1, 2]
test_sphere_complex_scalar_backward(Nphi, Ntheta, radius, basis, dealias)
test_sphere_complex_scalar_forward(Nphi, Ntheta, radius, basis, dealias)
test_sphere_real_scalar_backward(Nphi, Ntheta, radius, basis, dealias)
test_sphere_real_scalar_forward(Nphi, Ntheta, radius, basis, dealias)
test_sphere_roundtrip_noise(Nphi, Ntheta, radius, basis, dealias, dtype, layout, rank)
Nphi_range = [16]
Nr_range = [16]
radius_range = [2.5]
alpha_range = [0, 1]
k_range = [0, 1, 2]
dealias_range = [0.5, 1, 1.5]
build_disk(Nphi, Nr, radius, alpha, k, dealias, dtype)
build_annulus(Nphi, Nr, radius, alpha, k, dealias, dtype)
test_polar_scalar_roundtrip(Nphi, Nr, radius, alpha, k, dealias, dtype, build_basis)
test_polar_roundtrip_noise(Nphi, Nr, radius, alpha, k, dealias, dtype, layout, rank, build_basis)
test_polar_scalar_roundtrip_mmax0(Nr, radius, alpha, k, dealias, dtype, build_basis)
test_polar_vector_roundtrip(Nphi, Nr, radius, alpha, k, dealias, dtype, build_basis)
test_polar_vector_roundtrip_mmax0(Nr, radius, alpha, k, dealias, dtype, build_basis)
test_polar_tensor_roundtrip(Nphi, Nr, radius, alpha, k, dealias, dtype, build_basis)
test_polar_tensor_roundtrip_mmax0(Nr, radius, alpha, k, dealias, dtype, build_basis)
build_shell(Nphi, Ntheta, Nr, radii, alpha, k, dealias, dtype)
Nphi_range = [8]
Ntheta_range = [8]
Nr_range = [8]
radii_range = [[0.5, 3]]
alpha_range = [None, [0, 0]]
k_range = [0, 1, 2]
dealias_range
dtype_range
layout_range = ['g', 'c']
rank_range = [0, 1, 2]
test_shell_radial_roundtrip_noise(Nr, radii, alpha, k, dealias, dtype, layout, rank)
test_shell_roundtrip_noise(Nphi, Ntheta, Nr, radii, alpha, k, dealias, dtype, layout, rank)
build_ball(Nphi, Ntheta, Nr, radius, alpha, k, dealias, dtype)
Nphi_range = [8]
Ntheta_range = [8]
Nr_range = [16]
radius_range = [1.5]
alpha_range = [0, 1]
k_range = [0, 1, 2]
dealias_range
dtype_range
layout_range = ['g', 'c']
rank_range = [0, 1, 2]
test_ball_radial_roundtrip_noise(Nr, radius, alpha, k, dealias, dtype, layout, rank)
test_ball_roundtrip_noise(Nphi, Ntheta, Nr, radius, alpha, k, dealias, dtype, layout, rank)