mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
padEdge.padEdge
mir
ndslice
concatenation
padEdge
auto
padEdge
(Slice!(Iterator, N, kind) s, size_t[dimensions.length] lengths)
template
padEdge
(size_t[] dimensions, string[] directions)
@
optmath
@
optmath
auto
padEdge
(
Iterator
size_t
N
SliceKind
kind
)
(
Slice
!(
Iterator
,
N
,
kind
)
s
,
size_t
[
dimensions.length
]
lengths
...
)
if
(
dimensions.length
&&
dimensions.length
==
directions.length
)
auto
padEdge
(Slice!(Iterator, N, kind) s, size_t[N] lengths)
Parameters
s
Slice
!(
Iterator
,
N
,
kind
)
Slice
lengths
size_t
[
dimensions
.
length
]
list of lengths for each dimension.
Return Value
Type:
auto
Concatenation
See Also
._concatenation
examples.
Meta
Source
See Implementation
mir
ndslice
concatenation
padEdge
functions
padEdge