Skip to content

multiply_log(0, 0) has infinite gradient #2494

Open
@jsocolar

Description

@jsocolar

Description

For more details, see https://discourse.mc-stan.org/t/non-linear-modelling-michaelis-menten/22736/8

Example

The gradient for poisson_lpmf(0 | lambda) is infinite at lambda = 0.

Suggested fix

@nhuurre writes on discourse:

We should just special-case a=0.0 like we do with a=1.0

Current Version:

v4.0.1

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