JuliaDiff / JuliaDiff/ForwardDiff.jl
using lgamma evaluated at complex values
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 1k
- Forks
- 160
- PR merge metrics
- No merged PRs in 30d
Description
My function evaluates the lgamma function at complex values. I ran into the following error:
ERROR: MethodError: no method matching lgamma(::Complex{ForwardDiff.Dual{ForwardDiff.Tag{ElementarySymmetricFunctions.#logLC#42{Array{Float64,1},Array{Int64,1}},Float64},Float64,10}})
MWE:
julia> lgamma(Complex(ForwardDiff.Dual(5.0)))
ERROR: MethodError: no method matching lgamma(::Complex{ForwardDiff.Dual{Void,Float64,0}})
Closest candidates are:
lgamma(::Float64) at math.jl:419
lgamma(::Float32) at math.jl:420
lgamma(::Float16) at math.jl:950
...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Julia MWE showing lgamma applied to a complex ForwardDiff.Dual value and inspect the existing lgamma and complex-number method definitions. Done means the reported expression evaluates without a MethodError and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100