def fprows
import bendtorch@1.3.0.0/main.bend as Bendtorchimport Base
2462def fprows(left: Nat, +i: Nat, +m: Nat, +hd: Nat, +sc: F32, +qs: U32, +qc: U32, +ks: U32, +kc: U32, r: PR) -> QK:
2463 match left r:
2464 case 0n PR{q, k, p, n}:
2465 QK{q, k, p}
2466 case 1n+rest PR{q, k, p, n}:
2467 fprows(rest, 1n+i, m, hd, sc, qs, qc, ks, kc, fprow(1n+i, m, hd, sc, qs, qc, ks, kc, q, k, p))