File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ import Base.rand
22
22
# TODO implement O(n^2) method
23
23
function rand (W:: Haar , n:: Integer , doCorrection:: Integer )
24
24
beta = W. beta
25
- M= rand (Ginibre (n, beta))
25
+ M= rand (Ginibre (beta,n ))
26
26
q,r= qr (M)
27
27
if doCorrection== 0
28
28
q
29
29
elseif doCorrection== 1
30
30
if beta== 1
31
- L = sign (rand (n)- 0.5 )
31
+ L = sign (rand (n). -0.5 )
32
32
elseif beta== 2
33
33
L = exp (im* rand (n)* 2pi )
34
34
elseif beta== 4
53
53
# By default, always do piecewise correction
54
54
# For most applications where you use the HaarMatrix as a similarity transform
55
55
# it doesn't matter, but better safe than sorry... let the user choose else
56
- rand (W:: Haar ) = rand (W, 1 )
56
+ rand (W:: Haar ,n :: Integer ) = rand (W,n , 1 )
57
57
58
58
# A utility method to check if the piecewise correction is needed
59
59
# This checks the R part of the QR factorization; if correctly done,
You can’t perform that action at this time.
0 commit comments