Matrix.identity

Returns identity matrix for size

struct Matrix(T, size_t H, size_t W)
static
static if(isSquare)
identity
()
if (
isNumeric!T &&
W > 0
&&
H > 0
)

Meta