def interior
import stelliferous@0.0.2.0/tensor_layout.bend as TensorLayoutimport Base
import stelliferous@0.0.2.0/tensor_view.bend as Views
515# The view of the padded extents that holds the tensor: on every axis, the
516# extent of the tensor starting after the elements added in front.
517def interior(before: List<&2,U32>,shape: List<&2,U32>,view: Maybe<&2,Views.View>,+axis: U32) -> Maybe<&2,Views.View>:
518 match before shape:
519 case Con{front,before} Con{extent,shape}: interior(before,shape,sliced(view,axis,front,extent,1),(axis + 1 : U32))
520 case before shape: view