TensorView.contiguous_size: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_view.bend as TensorView Lines 97-102 of stelliferous@0.0.2.0/tensor_view.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_view.bend&start_line=97&end_line=102 import Base # Validate strides from the innermost axis outward. This avoids allocating a # second canonical View just to compare its metadata. Empty views bypass it. def contiguous_size(axes: List<&2,Axis>) -> Maybe<&2,U32>: match axes: case []: Some{1} case Axis{extent,stride} <> tail: contiguous_axis(extent,stride,contiguous_size(tail)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_view.bend&name=Axis https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_view.bend&name=contiguous_axis