Dtype.q8_fin: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/dtype.bend as Dtype Lines 378-381 of bendtorch@1.3.0.0/dtype.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/dtype.bend&start_line=378&end_line=381 import Base import bendtorch@1.3.0.0/main.bend as T def q8_fin(-r: Nat, -c: Nat, +n: Nat, +rr: Nat, qr: QR) -> Q8: match qr: case QR{qs, ss}: Q8{fill_u(quads(qs), 0, Array.new(U32, T.depth(Nat.div(Nat.add(n, 3n), 4n)), 0)), fill_f(ss, 0, Array.new(F32, T.depth(rr), 0.0))} Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.new 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=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.div 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=Q8 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=QR https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=fill_f https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=fill_u https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=quads https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=depth