Mat.identity

struct Mat(T, size_t rowCount, size_t colCount)
static
static if(rowCount == colCount)
Mat!(T, N, N)
identity
()
if (
isNumeric!T &&
rowCount > 0
&&
colCount > 0
)

Return Value

Type: Mat!(T, N, N)

An identity matrix.

Meta