Report a bug
If you spot a problem with this page, click here to create a GitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

mir.internal.utility

template Iota(size_t j)
template Iota(size_t i, size_t j)
template realType(C) if (__traits(isFloating, C) || isComplex!C)
template isComplex(C)
Examples:
static assert(!isComplex!double);
import mir.complex: Complex;
static assert(isComplex!(Complex!double));
import std.complex: PhobosComplex = Complex;
static assert(isComplex!(PhobosComplex!double));

static struct C
{
    Complex!double value;
    alias value this;
}

static assert(isComplex!C);
Examples:
static assert(!isComplex!(__vector(double[2])));
template isComplexOf(C, F) if (isFloatingPoint!F)
enum auto isFloatingPoint(C);