Skip to content

Commit 4a1b886

Browse files
committed
tweak for BigFloat support
1 parent 6533f26 commit 4a1b886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/disk.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ function Base.view(W::WeightedZernikeFractionalLaplacianDiag{T}, K::Block{1}) wh
281281
end
282282

283283
# generic d-dimensional ball fractional coefficients without the 2^(2*β) factor. m is assumed to be entered as abs(m)
284-
function fractionalcfs(l::Integer, m::Integer, α, d::Integer)
284+
function fractionalcfs(l::Integer, m::Integer, α::T, d::Integer) where T
285285
n = (l-m)÷2
286-
return exp(loggamma+n+1)+loggamma((d+2*m)/2+α+n)-loggamma(n+1)-loggamma((d+2*m)/2+n))
286+
return exp(loggamma+n+1)+loggamma((2*α+2*n+d+2*m)/2)-loggamma(one(T)+n)-loggamma((2*one(T)*m+2*n+d)/2))
287287
end
288288
# 2 dimensional special case, again without the 2^(2*β) factor
289289
fractionalcfs2d(l::Integer, m::Integer, β) = fractionalcfs(l,m,β,2)

0 commit comments

Comments
 (0)