force the elements on the diagonal to be nonnegative (default: FALSE).
Value
simOrtho returns a real matrix of size \(d\) times \(d\).
Details
The algorithm is based on QR decomposition of a random matrix, see Section 3 page 404 in Stewart (1980).
References
G.W. Stewart. 1980. The efficient generation of random orthogonal matrices with an application to condition estimators. SIAM J. Numer. Anal. 17:403-409. <DOI:10.1137/0717034>