From 82d23e81bbccbcf3df711337b3168875e762f9cf Mon Sep 17 00:00:00 2001 From: Seth Axen Date: Mon, 7 Jun 2021 10:59:36 +0200 Subject: [PATCH] Call promote_eltype not promote_type --- src/matrix/lkj.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/lkj.jl b/src/matrix/lkj.jl index a9aba5271..d6982338e 100644 --- a/src/matrix/lkj.jl +++ b/src/matrix/lkj.jl @@ -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