Matrix.opCast

Casts matrix to a new type. It should be matrix type too, with equal quantity of lines and cols.

  1. NewType opCast()
    struct Matrix(size_t Lines, size_t Cols, Type = float)
    @trusted pure nothrow
    NewType
    opCast
    (
    NewType
    )
    ()
    if (
    isMatrix!NewType &&
    NewType.lines == Lines
    &&
    NewType.cols == Cols
    &&
    (
    is(NewType.type : Type) ||
    is(Type : NewType.type)
    )
    )
    if (
    Lines > 0 &&
    Cols > 0
    )
  2. string opCast()

Meta