dropBorders

Drops borders for all dimensions.

@optmath
Slice!(Iterator, N,
N > 1 &&
kind == Contiguous
? Canonical : kind, Labels)
dropBorders
(
Iterator
size_t N
SliceKind kind
Labels...
)
(
Slice!(Iterator, N, kind, Labels) slice
)

Parameters

slice Slice!(Iterator, N, kind, Labels)

ndslice

Return Value

Type: Slice!(Iterator, N,
N > 1 &&
kind == Contiguous
? Canonical : kind, Labels)

Tensors with striped borders

Examples

assert([4, 5].iota.dropBorders == [[6, 7, 8], [11, 12, 13]]);

See Also

Meta