BatchedMatmulLAWS.promote_left: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS.bend as BatchedMatmulLAWS Lines 292-299 of bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS.bend&start_line=292&end_line=299 import Base # A 1-D left operand [k] is the row [1, k], a 1-D right one the column # [k, 1]. def promote_left(dims: List<&2, Nat>) -> List<&2, Nat>: match dims: case +x <> Nil{}: [1n, x] case rest: rest Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat