This is a submodule of .

License

.

Copyright

Copyright 2016-, Ilya Yaroshenko, John Hall

Authors

John Hall

Example

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);

Variables

isVector
bool = is(T : Slice!(Iterator, 1, kind), SliceKind kind, Iterator)
isMatrix
bool = is(T : Slice!(Iterator, 2, kind), SliceKind kind, Iterator)
isContiguousSlice
bool = is(T : Slice!(Iterator, N, Contiguous), Iterator, size_t N)
isCanonicalSlice
bool = is(T : Slice!(Iterator, N, Canonical), Iterator, size_t N)
isUniversalSlice
bool = is(T : Slice!(Iterator, N, Universal), Iterator, size_t N)
isContiguousVector
bool = is(T : Slice!(Iterator, 1, Contiguous), Iterator)
isUniversalVector
bool = is(T : Slice!(Iterator, 1, Universal), Iterator)
isContiguousMatrix
bool = is(T : Slice!(Iterator, 2, Contiguous), Iterator)
isCanonicalMatrix
bool = is(T : Slice!(Iterator, 2, Canonical), Iterator)
isUniversalMatrix
bool = is(T : Slice!(Iterator, 2, Universal), Iterator)

Templates

isIterator