mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
strided.strided
mir
ndslice
dynamic
strided
auto
strided
(Slice!(Iterator, N, kind) _slice, Repeat!(Dimensions.length, ptrdiff_t) factors)
template
strided
(Dimensions...)
@
optmath
static if
(
allSatisfy!(isSize_t, Dimensions)
)
@
optmath
auto
strided
(
Iterator
size_t
N
SliceKind
kind
)
(
Slice
!(
Iterator
,
N
,
kind
)
_slice
,
Repeat
!(
Dimensions.length
,
ptrdiff_t
)
factors
)
if
(
Dimensions.length
)
alias
strided
=
.
strided
!(
staticMap
!(
toSize_t
,
Dimensions
))
auto
strided
(Slice!(Iterator, N, kind) slice, ptrdiff_t factor)
Slice
!(
Iterator
,
N
,
Universal
)
strided
(Slice!(Iterator, N, kind) _slice, size_t dimension, ptrdiff_t factor)
Parameters
_slice
Slice
!(
Iterator
,
N
,
kind
)
input slice
factors
Repeat
!(
Dimensions
.
length
,
ptrdiff_t
)
list of step extension factors
Meta
Source
See Implementation
mir
ndslice
dynamic
strided
functions
strided