def gnf_grp
import bendtorch@1.3.0.0/main.bend as Bendtorchimport Base
1920# one (image, group) block: off is the image's first row's first cell, j the group's first channel
1921def gnf_grp(+hw: Nat, +off: U32, +j: U32, +c: U32, +cg: Nat, +nf: F32, +eps: F32, s: R4) -> R4:
1922 match s:
1923 case R4{x, g, b, y}:
1924 gnf_grp2(hw, off, j, c, cg, g, b, y, gn_mr(hw, (off + j : U32), c, cg, nf, eps, x))