mir-algorithm — Libmir Archive
← Libmir Archive
Dlang.org
byDim.byDim
mir
ndslice
topology
byDim
template
byDim
(SDimensions...)
@
fmamath
static if
(
allSatisfy!(isSizediff_t, SDimensions)
)
@
fmamath
auto
byDim
(
Iterator
size_t
N
SliceKind
kind
)
(
Slice
!(
Iterator
,
N
,
kind
)
slice
)
if
(
N
>=
SDimensions.length
)
if
(
SDimensions.length
> 0
)
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
mir
ndslice
topology
byDim
functions
byDim