Bendtorch.bpar_full: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/main.bend as Bendtorch Lines 3062-3069 of bendtorch@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/main.bend&start_line=3062&end_line=3069 import Base import bend-ml-tensor-array@0.1.18.0/main.bend as TA def bpar_full(d: Nat, gs: Halves, +n: Nat, +kv: Nat, +dm: Dm) -> List<&1, DB>: match d gs: case 0n Halves{l, r}: a b = bleaf_full(l, kv, dm, Nil{}) bleaf_full(r, kv, dm, Nil{}) List.append(&1, DB, a, b) case 1n++e Halves{l, r}: a b = bpar_full(e, cut(BG, TA.half(TA.half(n)), l, Nil{}), TA.half(n), kv, dm) bpar_full(e, cut(BG, TA.half(Nat.sub(n, TA.half(n))), r, Nil{}), Nat.sub(n, TA.half(n)), kv, dm) List.append(&1, DB, a, b) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=half https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=BG https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=DB https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Dm https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Halves https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=bleaf_full https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=cut