mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
transposed.transposed
mir
ndslice
dynamic
transposed
auto
transposed
(Slice!(Iterator, N, kind) _slice)
template
transposed
(Dimensions...)
@
optmath
static if
(
allSatisfy!(isSize_t, Dimensions)
)
@
optmath
auto
transposed
(
Iterator
size_t
N
SliceKind
kind
)
(
Slice
!(
Iterator
,
N
,
kind
)
_slice
)
if
(
Dimensions.length
)
alias
transposed
=
.
transposed
!(
staticMap
!(
toSize_t
,
Dimensions
))
auto
transposed
(Slice!(Iterator, N, kind) _slice, size_t[M] dimensions)
Slice
!(
Iterator
,
2
,
Universal
)
transposed
(Slice!(Iterator, 2, kind) slice)
Meta
Source
See Implementation
mir
ndslice
dynamic
transposed
functions
transposed