isUniversalMatrix

Test if type is a universal two-dimensional slice.

enum bool isUniversalMatrix(T);

Examples

import mir.ndslice.slice : Slice;

alias S1 = Slice!(int*);
static assert(isContiguousVector!S1);
static assert(!isUniversalVector!S1);

static assert(!isContiguousMatrix!S1);
static assert(!isCanonicalMatrix!S1);
static assert(!isUniversalMatrix!S1);

static assert(isVector!S1);
static assert(!isMatrix!S1);

static assert(isContiguousSlice!S1);
static assert(!isCanonicalSlice!S1);
static assert(!isUniversalSlice!S1);

Meta