def gr3

bendtorch@1.3.0.0 · main.bend:2631

import bendtorch@1.3.0.0/main.bend as Bendtorch
import Base

2631# the n positions of the row written: s = sum(dP * P) over them (from +0.0, in order), then G = (P * (dP - s)) * scale
2632def gr3(+sc: F32, +off: U32, d: Array<F32>, v: Array<F32>, p: Array<F32>, w: GN) -> GR:
2633  match w:
2634    case GN{g, +n}:
2635      GR{d, v, g_set2(n, sc, off, dot0(n, off, off, 1, 1, g, p)), n}

Uses (7)

Used by (3)