Algorithm 3 Adjoints ω

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

 ωik = 0

 forv ← basis, ν = len(v) do

  \({{{\Theta }}}_{i{\bf{v}}}={\sum }_{p}\partial {\mathcal{F}}/\partial {\varphi }_{i}^{(p)}\cdot {\tilde{{\bf{c}}}}_{{\mu }_{i}{\bf{v}}}^{(p)}\)

  compute dAivt, t = 1, …, ν (Alg. 4)

  fort ← 1, …, νdo

   \({\omega }_{i{v}_{t}}+\!={{{\Theta }}}_{i{\bf{v}}}\cdot {\rm{Re}}({d{\bf{A}}}_{i{\bf{v}}t})\)

  end for

 end for