The OpenD Programming Language

dropBorders

Drops borders for all dimensions.

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