Dtype.HMat.words: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/dtype.bend as Dtype Lines 260-264 of bendtorch@1.3.0.0/dtype.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/dtype.bend&start_line=260&end_line=264 import Base # the words of a packed matrix, for printing and tests def HMat.words(+r: Nat, +c: Nat, h: HMat) -> List<&2, U32>: match h: case HMat{d}: ul_list(read_u(Nat.sub(hwords(Nat.mul(r, c)), 1n), 0, Nil{}, Array.get(U32, d, 0))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=HMat https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=hwords https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=read_u https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=ul_list