def run_whole

stelliferous@0.0.2.0 · tensor_indexed.bend:63

import stelliferous@0.0.2.0/tensor_indexed.bend as TensorIndexed
import Base

63def run_whole(~Element: Data,~Context: Data,~index: Context -> U32 -> U32,~base: Context -> U32 -> U32,~operation: U32 -> Element -> Element,
64  whole: Bool,blocks: U32,size: U32,total: U32,context: Context,input: Array<Element>,output: Array<Element>) -> Array<Element> & Array<Element>:
65  match whole:
66    case True{}: run_blocks(~Element,~Context,~base,~operation,U32.to_nat(blocks),size,context,input,output)
67    case False{}: run(~Element,~Context,~index,~operation,Call{U32.to_nat(total),context},input,output)

Uses (8)

Used by (2)