TensorView.stretched_axis: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_view.bend as TensorView Lines 211-217 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=211&end_line=217 import Base # One axis read as extent elements: unchanged when the extents agree, the # single element repeated (stride 0) when the axis has extent 1. def stretched_axis(same: Bool,single: Bool,size: U32,stride: U32,extent: U32) -> Maybe<&2,Axis>: match same single: case True{} single: Some{Axis{size,stride}} case False{} True{}: Some{Axis{extent,0}} case False{} False{}: None{} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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