Compute the projection matrix from a square matrix.
projMat(X)
X
a square matrix.
A square matrix.
Kevin Chang
m = matrix(1, nrow = 10, ncol = 3) projMat(m)