def lj_row

bend-prot@0.1.0.0 · force.bend:54

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

54def lj_row(
55  +pi: G.Vec3, +eps: F32, +sig2: F32, +c2: F32, ys: List<&2, P.Atom>
56) -> F32:
57  match ys:
58    case Nil{}:
59      0.0
60    case h <> t:
61      (lj_row(pi, eps, sig2, c2, t) + lj_head(pi, eps, sig2, c2, h) : F32)

Uses (6)

Used by (4)