BendMlTensorGpu.pk: def of bend-ml-tensor-gpu@0.1.5.1 Import: import bend-ml-tensor-gpu@0.1.5.1/main.bend as BendMlTensorGpu Lines 37-41 of bend-ml-tensor-gpu@0.1.5.1/main.bend: https://jend.leeeet.dev/read.txt?path=bend-ml-tensor-gpu@0.1.5.1/main.bend&start_line=37&end_line=41 import Base # a product that counts only when its step is inside k (the last turn's steps past k add +0.0) def pk(ok: Bool, +x: F32) -> F32: match ok: case True{}: x case False{}: 0.0 Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32