# tree_d_3d.kernels.cart_downward.cart_downward_pyccel

*module*

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`).

[View source](https://github.com/max-models/tree-d-3d/blob/devel/src/tree_d_3d/kernels/cart_downward/cart_downward_pyccel.py#L1-L1)

## tree_d_3d.kernels.cart_downward.cart_downward_pyccel.cart_downward

*function*

```python
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.

[View source](https://github.com/max-models/tree-d-3d/blob/devel/src/tree_d_3d/kernels/cart_downward/cart_downward_pyccel.py#L14-L55)
