def pk

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

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

37# a product that counts only when its step is inside k (the last turn's steps past k add +0.0)
38def pk(ok: Bool, +x: F32) -> F32:
39  match ok:
40    case True{}: x
41    case False{}: 0.0

Uses (2)

Used by (1)