ElementType

行列型の要素の型を取得します

template ElementType (
A
) if (
isMatrix!A ||
isAbstractMatrix!A
) {}

Members

Aliases

ElementType
alias ElementType = typeof(A.init.at(0, 0))
Undocumented in source.

Examples

static struct S
{
    enum rows = 1;
    enum cols = 1;

    int opIndex(size_t, size_t) const
    {
        return 1;
    }

    alias at = opIndex;
}

static assert(is(ElementType!S == int));

Meta