def right_index
import bendtorch-core@0.1.0.0/src/tensor/contracts/dot.bend as Dotimport Base
19def right_index(cell: Cell, k: Nat) -> Nat:
20 Cell{row, column, inner, columns} = cell
21 Nat.add(Nat.mul(k, columns), column)
Uses (4)
Used by (5)
- bendtorch-core@0.1.0.0/src/tensor/contracts/dot:dot
- bendtorch-core@0.1.0.0/src/tensor/contracts/dot_proof:dot_ordered
- bendtorch-core@0.1.0.0/src/tensor/contracts/dot_proof:right_below
- bendtorch-core@0.1.0.0/src/tensor/contracts/dot_proof:right_inside
- bendtorch-core@0.1.0.0/src/tensor/contracts/dot_proof:total_factors