Matrix.diag

Makes a diagonal matrix from a vector.

struct Matrix(T, int R, int C)
@nogc static pure nothrow
static if(isSquare && R > 1)
diag
(
Vector!(T, R) v
)

Meta