Skip to content

multiply_log(0, 0) has infinite gradient #2494

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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