Skip to content

Commit 8a5a9fd

Browse files
committed
Fixed Ginibre
1 parent 2a2efcf commit 8a5a9fd

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/Ginibre.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ immutable Ginibre <: ContinuousMatrixDistribution
1111
end
1212

1313
function rand(W::Ginibre)
14+
beta, n = W.beta, W.N
1415
if beta==1
1516
randn(n,n)
1617
elseif beta==2

src/HaarMeasure.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import Base.rand
2020
# Edelman and Rao, 2005
2121
# Mezzadri, 2006, math-ph/0609050
2222
#TODO implement O(n^2) method
23-
function rand(W::Haar, doCorrection::Integer)
24-
n, beta = W.N, W.beta
23+
function rand(W::Haar, n::Integer, doCorrection::Integer)
24+
beta = W.beta
2525
M=rand(Ginibre(n, beta))
2626
q,r=qr(M)
2727
if doCorrection==0

src/RandomMatrices.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ include("GaussianEnsembles.jl")
3131
include("densities/Semicircle.jl")
3232
include("densities/TracyWidom.jl")
3333

34+
35+
# Ginibre
36+
include("Ginibre.jl")
37+
3438
#Generating matrices of Haar measure
3539
include("Haar.jl")
3640
include("HaarMeasure.jl")

0 commit comments

Comments
 (0)