mir-core ~master (2021-10-18T16:44:50Z)
Dub
Repo
DimensionCount
mir
primitives
@
optmath
template
DimensionCount (
T
) {
import
mir
.
ndslice
.
slice
:
Slice
,
SliceKind
;
;
@
optmath
static if
(
is(T : Slice!(Iterator, N, kind), Iterator, size_t N, SliceKind kind)
)
enum
size_t
DimensionCount
;
@
optmath
static if
(!(
is(T : Slice!(Iterator, N, kind), Iterator, size_t N, SliceKind kind)
))
static if
(
hasShape!T
)
enum
size_t
DimensionCount
;
@
optmath
static if
(!(
is(T : Slice!(Iterator, N, kind), Iterator, size_t N, SliceKind kind)
))
static if
(!(
hasShape!T
))
enum
size_t
DimensionCount
;
}
Members
Variables
DimensionCount
enum
size_t
DimensionCount
;
Extracts dimension count from a
Slice
. Alias for
isSlice
.
DimensionCount
enum
size_t
DimensionCount
;
Undocumented in source.
DimensionCount
enum
size_t
DimensionCount
;
Undocumented in source.
Meta
Source
See Implementation
mir
primitives
aliases
elementsCount
functions
anyEmpty
anyEmptyShape
back
elementCount
empty
front
length
popBack
popBackExactly
popBackN
popFront
popFrontExactly
popFrontN
save
shape
walkLength
templates
DeepElementType
DimensionCount
ElementType
isInfinite
variables
hasLength
hasShape
isInputRange
isOutputRange