def x8_7
import bendtorch-gpu@1.3.0.0/main.bend as BendtorchGpuimport Base
1439# the same over 8 cells in straight-line code (no closure a node): e0..e7 written, then ((e0 + e1) + (e2 + e3)) +
1440# ((e4 + e5) + (e6 + e7)), the balanced tree's three levels
1441def x8_7(+lo: U32, +m: F32, +e0: F32, +e1: F32, +e2: F32, +e3: F32, +e4: F32, +e5: F32, +e6: F32, r: Array<F32> & F32) -> TS:
1442 match r:
1443 case Tuple{a, +x}:
1444 +e7 = F32.exp((x - m : F32))
1445 TS{Array.set(F32, a, (lo + 7 : U32), e7), ((((e0 + e1 : F32) + (e2 + e3 : F32) : F32) + ((e4 + e5 : F32) + (e6 + e7 : F32) : F32)) : F32)}