The OpenD Programming Language

padSymmetric.padSymmetric

  1. auto padSymmetric(Slice!(Iterator, N, kind) s, size_t[dimensions.length] lengths)
    template padSymmetric(size_t[] dimensions, string[] directions)
    padSymmetric
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) s
    ,
    size_t[dimensions.length] lengths...
    )
    if (
    dimensions.length &&
    dimensions.length == directions.length
    )
  2. auto padSymmetric(Slice!(Iterator, N, kind) s, size_t[N] lengths)

Parameters

s Slice!(Iterator, N, kind)
lengths size_t[dimensions.length]

list of lengths for each dimension. Each length must be less or equal to the corresponding slice length.

Return Value

Type: auto

See Also

._concatenation examples.

Meta