def tree3
bend-ml-tensor-gpu@0.1.5.1 · main.bend:473
import bend-ml-tensor-gpu@0.1.5.1/main.bend as BendMlTensorGpu
import Base
473def tree3(~E: Data, ~f: @+t: U32 -> @+l: U32 -> @+e: E -> Array<F32> -> Array<F32> -> Array<F32> -> Array<F32> -> O3 -> O3, +d: Nat, +t: U32, +l: U32, +e: E, +x1: Array<F32>, +x2: Array<F32>, +x3: Array<F32>, +x4: Array<F32>, +oa: Array<F32>, +ob: Array<F32>, +oc: Array<F32>) -> O3:
474 match d:
475 case 0n: f(t, l, e, x1, x2, x3, x4, O3{oa, ob, oc})
476 case 1n+q:
477 x y = tree3(~E, ~f, q, (t * 2 : U32), l, e, x1, x2, x3, x4, oa, ob, oc) tree3(~E, ~f, q, ((t * 2 : U32) + 1 : U32), l, e, x1, x2, x3, x4, oa, ob, oc)
478 join3(x, y)
479
480@unsafe