powered by
Construct an identity matrix.
identityMat(n)
a numeric describes the dimension of the identity matrix.
This function returns a matrix with the diagonal elements equal to one and the off-diagonal elements equal to zero.
John J, Williams E (1987). Cyclic and computer generated Designs. Second edition. Chapman & Hall.
diag
# NOT RUN { identityMat(10) # }
Run the code above in your browser using DataLab