Algorithm 5 Compute fki

From: Performant implementation of the atomic cluster expansion (PACE) and application to copper and silicon

1:

fki = 0

2:

forn, l, (m ≥ 0) do

3:

 fork ← neighbors of atom ido

4:

  \({{\bf{f}}}_{ki}\!+\!=(2-{\delta }_{m0}){\rm{Re}}\left(\right.{\omega }_{i{\mu }_{k}nlm}{\nabla }_{k}{\phi }_{{\mu }_{k}{\mu }_{i}nlm}({{\bf{r}}}_{ki})\left)\right.\)

5:

 end for

6:

end for