Bonded.lj_frow_excl: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/bonded.bend as Bonded Lines 244-252 of bend-prot@0.1.0.0/bonded.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/bonded.bend&start_line=244&end_line=252 import Base import bend-prot@0.1.0.0/geom.bend as G import bend-prot@0.1.0.0/protein.bend as P import bend-prot@0.1.0.0/force.bend as F # Excluded LJ forces mirror lj_forces, skipping 1-2/1-3 pairs by serial. def lj_frow_excl(+si: U32, +pi: G.Vec3, +eps: F32, +sig2: F32, +c2: F32, ys: List<&2, P.Atom>, +bonds: List<&2, U32>) -> G.Vec3: match ys: case Nil{}: G.V3{0.0, 0.0, 0.0} case h <> t: match h: case P.Atom{serial, elem, +pj}: G.Vec3.add(lj_frow_excl(si, pi, eps, sig2, c2, t, bonds), Bool.pick(G.Vec3, excluded(si, serial, bonds), G.V3{0.0, 0.0, 0.0}, F.lj_fat(pi, pj, eps, sig2, c2))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/bonded.bend&name=excluded https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/force.bend&name=lj_fat https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/geom.bend&name=Vec3 https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/geom.bend&name=Vec3.add https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=Atom