fmm.test package

Submodules

fmm.test.test_fmm module

Test the fmm module.

Configured with test data ‘test.hdf5’ and a test config, ‘test_config.json’, bundled with the package.

fmm.test.test_fmm.test_fmm()

End To End Fmm Test.

fmm.test.test_fmm.test_m2l()
Test that the local expansions of a given target node correspond to the

multipole expansions of source nodes in its V list at a local point within the target node.

fmm.test.test_fmm.test_upward_pass()
Test that multipole expansion of root node is the same as a direct

computation for a set of source points, at a target point located at a distance.

fmm.test.test_kernel module

Test for kernel module.

fmm.test.test_kernel.test_laplace_grad_cpu(x, y, c)
fmm.test.test_kernel.test_laplace_gradient(sources, targets, source_densities)
fmm.test.test_kernel.test_laplace_gram_matrix_serial(sources, targets)
fmm.test.test_kernel.test_laplace_kernel_cpu(x, y, expected)
fmm.test.test_kernel.test_laplace_p2p_serial(sources, targets, source_densities)
fmm.test.test_kernel.test_laplace_scale(level, expected)

fmm.test.test_linalg module

Test linear algebra routines

fmm.test.test_linalg.test_pinv(dtype)
fmm.test.test_linalg.test_pinv2(dtype)

fmm.test.test_surface module

Tests for the surface module.

fmm.test.test_surface.surf32()
fmm.test.test_surface.surf64()
fmm.test.test_surface.test_compute_surface(order, dtype)

Test surface computation

fmm.test.test_surface.test_scale_surface(surf, radius, level, center, alpha, dtype)

Test shifting/scaling surface

Module contents