Skip to content
Projects

tree_d_3d.kernels.cart_downward.cart_downward_pyccel

The Pyccel version (CPU) of the cart_downward kernel of the Coulomb FMM.

cart_downward_numpy.py next to this file is the version for machines without Pyccel, with the same arguments; the folder’s __init__.py declares the kernel (see tree_d_3d.kernels).

Functions

NameDescription
cart_downwardShift every cell's local expansion into its children, from the root down.

cart_downwardfunction#

def cart_downward(levels: int64[:], node_center: float[:, :], node_child: int64[:], mono_parent: int64[:], mono_dir: int64[:], shift: int64[:, :], shift_coef: float[:], local: float[:, :]) -> None

Shift every cell’s local expansion into its children, from the root down.

T_b(child) += sum_g C(g, b) T_g s^(g - b) over the rows (g, b, g - b) of shift, s = c_child - c. The nodes of a level shift into disjoint children.