Bendtorch.prows: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/main.bend as Bendtorch Lines 2432-2439 of bendtorch@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/main.bend&start_line=2432&end_line=2439 import Base # rows i.. of a head's P: r holds rows up to i; left rows more after it. Queries are rows of q (qs apart, the head's # columns from qc), keys rows of k (ks apart, from kc). def prows(left: Nat, +i: Nat, +t: Nat, +hd: Nat, +sc: F32, +qs: U32, +qc: U32, +ks: U32, +kc: U32, r: PR) -> QK: match left r: case 0n PR{q, k, p, n}: QK{q, k, p} case 1n+m PR{q, k, p, n}: prows(m, 1n+i, t, hd, sc, qs, qc, ks, kc, prow(1n+i, t, hd, sc, qs, qc, ks, kc, q, k, p)) Uses (6): 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=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=PR https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=QK https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=prow