Haar¶
The Haar distribution is the uniform distribution over the space of real or complex unitary matrices.
C++ API¶
-
void
Haar
(ElementalMatrix<F> &A, Int n)¶ Draws
A
from the Haar distribution. The current scheme performs a QR factorization of a Gaussian matrix, but Stewart introduced a well-known scheme which only requires quadratic work for the implicit representation as a product of random Householder reflectors.