Matrix.castTo

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

struct Matrix(size_t Lines, size_t Cols, Type = float)
@trusted
Matrix!(Lines, Cols, NewType)
castTo
(
NewType
)
()
if (
is(NewType : Type) ||
is(Type : NewType)
)
if (
Lines > 0 &&
Cols > 0
)

Meta