Matmul.product_tree_certified: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmul Lines 674-694 of bendtorch-core@0.1.0.0/src/tensor/matmul.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&start_line=674&end_line=694 import Base import bendtorch-core@0.1.0.0/src/tensor/parallel.bend as Parallel def product_tree_certified(+layout: Layout, +depth: Nat, +count: Nat, +base: Nat, state: Array & Array) -> Parallel.Certified<(Array & Array), depth, product_tree(layout, depth, count, base, state)>: match depth: case 0n: Parallel.tree_certified(~Layout, ~Array, ~Array, ~product_cell_at, layout, 0n, count, base, state) case 1n+d1: match d1: case 0n: Parallel.tree_certified(~Layout, ~Array, ~Array, ~product_cell_at, layout, 1n, count, base, state) case 1n+d2: match d2: case 0n: Parallel.tree_certified(~Layout, ~Array, ~Array, ~product_cell_at, layout, 2n, count, base, state) case 1n+d3: match d3: case 0n: block_or_tree_certified(layout, count, base, state, one_row(layout, count, base)) case 1n+d4: Parallel.node_certified(~Array, ~Array, d1, l => r => product_tree(layout, d1, count, Parallel.upper(d1, base), (l, r)), product_tree(layout, d1, count, base, state), product_tree_certified(layout, d1, count, base, state), l => r => product_tree_certified(layout, d1, count, Parallel.upper(d1, base), (l, r))) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&name=Layout https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&name=block_or_tree_certified https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&name=one_row https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&name=product_cell_at https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&name=product_tree https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/parallel.bend&name=Certified https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/parallel.bend&name=node_certified https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/parallel.bend&name=tree_certified https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/parallel.bend&name=upper