tree_d_3d.kernels.direct_log_sum.direct_log_sum_numpy
The NumPy version of the direct_log_sum kernel, for machines without Pyccel.
Vectorized over blocks of targets and all sources; the same arguments and results as direct_log_sum_pyccel.py.
Attributes
| Name | Description |
|---|---|
CHUNK | No description. |
Functions
| Name | Description |
|---|---|
direct_log_sum | All-pairs line-charge potential and field; same conventions. |
CHUNKattributemodule attribute#
CHUNK = 256direct_log_sumfunction#
def direct_log_sum(targets: np.ndarray, exclude: np.ndarray, pos: np.ndarray, charge: np.ndarray, softening: float, phi: np.ndarray, field: np.ndarray, status: np.ndarray) -> NoneAll-pairs line-charge potential and field; same conventions.
status[0] becomes 1 + a target that met an unsoftened coincident charge.