def q8_rows
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
349# the rows of a flat list of k rows of c, from the last one: each row's bytes and scale
350def q8_rows(k: Nat, +c: Nat, +xs: List<&2, F32>) -> QR:
351 match k:
352 case 0n:
353 QR{Nil{}, Nil{}}
354 case 1n+p:
355 qr_add(List.take(&2, F32, xs, c), q8_rows(p, c, List.drop(&2, F32, xs, c)))