Skip to content

sqrts in Marginal2D::sample() sometimes cause NaNs #4

@mmp

Description

@mmp

The values passed to the std::sqrts in there probably should be clamped to zero; I ran into a case where a NaN was generated here due to a sample very close to one and an unlucky combination of values in the expression passed to it.

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