n
.Will be needed in applications that explore high-dimensional data spaces, for example optimization procedures or Monte Carlo methods.
rortho(n)
Q
of size n
, that is Q %*% t(Q)
is the unit matrix of size n
.Q <- rortho(5)
zapsmall(Q %*% t(Q))
zapsmall(t(Q) %*% Q)
Run the code above in your browser using DataLab