TensorCursor.include_axis: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_cursor.bend as TensorCursor Lines 12-17 of stelliferous@0.0.2.0/tensor_cursor.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_cursor.bend&start_line=12&end_line=17 import Base def include_axis(active: Bool,+extent: U32,+stride: U32,axes: List<&2,Axis>) -> List<&2,Axis>: match active: case False{}: axes case True{}: +count = U32.to_nat(extent) Axis{count,count,stride,((extent - 1) * stride : U32)} <> axes Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_cursor.bend&name=Axis