byDim.byDim

  1. auto byDim(Slice!(Iterator, N, kind) slice)
    template byDim(SDimensions...)
    @optmath
    static if(allSatisfy!(isSizediff_t, SDimensions))
    @optmath
    byDim
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    )
    if (
    N >= SDimensions.length
    )
    if (
    SDimensions.length > 0
    )
  2. alias byDim = .byDim!(staticMap!(toSizediff_t, SDimensions))

Parameters

slice Slice!(Iterator, N, kind)

input n-dimensional slice, n >= d

Return Value

Type: auto

d-dimensional slice composed of (n-d)-dimensional slices

Meta