# tree_d_3d.kernels.quadtree_moments_upward

*module*

The quadtree_moments_upward kernel of the tree on the CPU: Pyccel and NumPy versions with
the same arguments.

The charges, dipoles and second moments of every cell in one upward pass: the leaves
sum their particles, the other cells shift their children's moments, so each particle
is read once instead of once per level. The GPU sums each cell's particles directly
(``quadtree_moments``).

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

## tree_d_3d.kernels.quadtree_moments_upward.kernel

*attribute* · *module attribute*

```python
kernel = KERNEL_PACKAGE.from_folder(__name__)
```

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

**Modules**

- `tree_d_3d.kernels.quadtree_moments_upward.quadtree_moments_upward_numpy`
- `tree_d_3d.kernels.quadtree_moments_upward.quadtree_moments_upward_pyccel`
