Skip to content

Commit 4c97a8e

Browse files
committed
testeigvaljpdf(d::GaussianLaguerre{β}, lambda})
1 parent 74f2182 commit 4c97a8e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/GaussianEnsembles.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function eigvaljpdf(d::GaussianLaguerre{β}, lambda::Vector{Eigenvalue}) where {
289289
c *= gamma(1 + β/2)/(gamma(1 + β*j/2)*gamma(z))
290290
end
291291

292-
Prod = prod(lambda.^(a-p)) #Calculate Laguerre product term
292+
Prod = prod(lambda.^(d.a-p)) #Calculate Laguerre product term
293293
Energy = sum(lambda)/2 #Calculate argument of exponential
294294
return c * VandermondeDeterminant(lambda, β) * Prod * exp(-Energy)
295295
end

test/GaussianEnsembles.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ for (β, T, N) in [(1, Real, n), (2, Complex, n), (4, Complex, 2n)]
4747
#vd = RandomMatrices.VandermondeDeterminant(vals, β)
4848
#@test isa(vd, Real)
4949

50-
#ed = eigvaljpdf(d, vals)
51-
#@test isa(ed, Real)
50+
ed = eigvaljpdf(d, vals)
51+
@test isa(ed, Real)
5252
end
5353
end
5454

0 commit comments

Comments
 (0)