We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb9df04 commit 4d82c05Copy full SHA for 4d82c05
1 file changed
src/Li2.jl
@@ -237,7 +237,7 @@ li2(z::Real) = li2(Complex(z))
237
238
_li2(z::ComplexF16) = oftype(z, _li2(ComplexF32(z)))
239
240
-function _li2(z::Complex{T})::Complex{T} where T
+function _li2(z::Complex{T})::Complex{T} where {T<:Union{Float32, Float64}}
241
rz, iz = reim(z)
242
243
if iszero(iz)
@@ -270,7 +270,7 @@ function _li2(z::Complex{T})::Complex{T} where T
270
end
271
272
273
-function _li2(z::Complex{BigFloat})::Complex{BigFloat}
+function _li2(z::Complex{T})::Complex{T} where T
274
275
276
0 commit comments