Skip to content

Commit 4b94a45

Browse files
committed
Fixed bug in bidrand(d::GaussianLaguerre, m::Integer)
1 parent 581ce29 commit 4b94a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GaussianEnsembles.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function bidrand(d::GaussianLaguerre, m::Integer)
124124
if d.a <= d.beta*(m-1)/2.0
125125
error(@sprintf("Given your choice of m and beta, a must be at least %f (You said a = %f)", d.beta*(m-1)/2.0, d.a))
126126
end
127-
Bidiagonal([chi(2*a-i*d.beta) for i=0:m-1], [chi(d.beta*i) for i=m-1:-1:1], true)
127+
Bidiagonal([chi(2*d.a-i*d.beta) for i=0:m-1], [chi(d.beta*i) for i=m-1:-1:1], true)
128128
end
129129

130130
#Generates a NxN tridiagonal Wishart matrix

0 commit comments

Comments
 (0)