Matrix.diag

Makes matrix with diagonal consists of received values.

struct Matrix(size_t Lines, size_t Cols, Type = float)
@trusted @trusted static pure nothrow
static if(Lines == Cols && isNumeric!Type)
Self
diag
(
Type[Lines] values...
)
if (
Lines > 0 &&
Cols > 0
)

Meta