Skip to content

Commit

Permalink
Call promote_eltype not promote_type
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Jun 7, 2021
1 parent e04fd77 commit 82d23e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrix/lkj.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ params(d::LKJ) = (d.d, d.η)
function lkj_logc0(d::Integer, η::Real)
d > 1 || return zero(η)
if isone(η)
T = float(Base.promote_type(d, η))
T = float(Base.promote_eltype(d, η))
if iseven(d)
logc0 = -T(lkj_onion_loginvconst_uniform_even(d))
else
Expand Down

0 comments on commit 82d23e8

Please sign in to comment.