def stride
import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmulimport Base
437# How far term k + 1 of an operand sits from term k: the next word of a
438# `Kept` row, the next row of a `Swapped` operand of `outers` columns.
439def stride(+order: Order, +outers: Nat) -> Nat:
440 match order:
441 case Kept{}:
442 1n
443 case Swapped{}:
444 outers
Uses (2)
Used by (18)
- bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS:CellAt
- bendtorch-core@0.1.0.0/src/tensor/matmul:row_block_run
- bendtorch-core@0.1.0.0/src/tensor/batched_matmul_PROOF:dot_run
- bendtorch-core@0.1.0.0/src/tensor/contracts/product_parallel_proof:stepped
- bendtorch-core@0.1.0.0/src/tensor/matmul:product_dot
- …