Skip to content

math-mode=fast is too aggressive #21375

@Keno

Description

@Keno

I know it implies that computations aren't supposed to have NaNs in them. However, NaN is frequently used as a placeholder value in storage. I feel like just looking at them with isnan should be safe, as long as we're not computing on them. However:

julia> NaN
2.696539702293474e308

julia> isnan(NaN)
true

julia> x = NaN
2.696539702293474e308

julia> isnan(x)
true

julia> f(x) = !isnan(x)
f (generic function with 1 method)

julia> f(x)
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    mathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions