PermuteBuild.strides: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/permute_build.bend as PermuteBuild Lines 66-72 of bendtorch-core@0.1.0.0/src/tensor/permute_build.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/permute_build.bend&start_line=66&end_line=72 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape # The row-major stride of each dimension: the element count after it. def strides(+dims: List<&2, Nat>) -> List<&2, Nat>: match dims: case Nil{}: Nil{} case head <> tail: Shape.numel(tail) <> strides(tail) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=numel