def stretch
import stelliferous@0.0.2.0/tensor_view.bend as TensorViewimport Base
240# The view read with the extents target under NumPy broadcasting. No element
241# moves: an axis of extent 1 is repeated with stride 0, and so is an axis the
242# view lacks.
243def stretch(view: View,+target: List<&2,U32>) -> Maybe<&2,View>:
244 View{axes,offset} = view
245 stretched_view(stretch_axes(with_rank(axes,List.length(&2,U32,target)),target),offset)