TensorLayout.scaled_extents: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_layout.bend as TensorLayout Lines 159-163 of stelliferous@0.0.2.0/tensor_layout.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_layout.bend&start_line=159&end_line=163 import Base def scaled_extents(extents: List<&2,U32>,+scale: U32) -> List<&2,U32>: match extents: case [height,width]: [(height * scale : U32),(width * scale : U32)] case extent <> rest: extent <> scaled_extents(rest,scale) case []: [] 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=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul