Matmul.row_of: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmul Lines 235-239 of bendtorch-core@0.1.0.0/src/tensor/matmul.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&start_line=235&end_line=239 import Base # Output cell `position` of a product with `columns` columns sits at row # `position / columns` and column `position % columns`, as the digits of the # output shape spell them. def row_of(+columns: Nat, +position: Nat) -> Nat: Nat.div(position, Nat.mul(columns, 1n)) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul