Skip to content

logaddexp introduces NaNs for non-finite values #61

Open
@tpapp

Description

@tpapp
julia> using ForwardDiff, LogExpFunctions

julia> x = ForwardDiff.Dual(-Inf, 0.0)
Dual{Nothing}(-Inf,0.0)

julia> logaddexp(x, x)
Dual{Nothing}(-Inf,NaN)

I think this is related to JuliaDiff/ForwardDiff.jl#481.

It is the a == b in logaddexp, but I am not yet sure how to elegantly special-case this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions