The OpenD Programming Language

DimensionCount

@optmath
template DimensionCount (
T
) {
@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.

Meta