def fg_if

bend-ml-tensor-gpu@0.1.5.1 · main.bend:710

import bend-ml-tensor-gpu@0.1.5.1/main.bend as BendMlTensorGpu
import Base

710# writes cell i when it is below n (the cell before the first of an odd i0, which wraps to 2^32 - 1, and the cell after
711# the last are not written)
712def fg_if(ok: Bool, +i: U32, +x: F32, o: Array<F32>) -> Array<F32>:
713  match ok:
714    case True{}: Array.set(F32, o, i, x)
715    case False{}: o

Uses (5)

Used by (1)