def lj_total_elem

bend-prot@0.1.0.0 · force.bend:288

import bend-prot@0.1.0.0/force.bend as Force
import Base
import bend-prot@0.1.0.0/protein.bend as P

288def lj_total_elem(xs: List<&2, P.Atom>, +ys: List<&2, P.Atom>, +c2: F32) -> F32:
289  match xs:
290    case Nil{}:
291      0.0
292    case +h <> t:
293      (lj_total_elem(t, ys, c2) + lj_row_elem(P.Atom.elem(h), P.Atom.pos(h), ys, c2) : F32)

Uses (7)

Used by (1)