Skip to content

How to set NaN values in an RArray to a certain number? #524

@x66ccff

Description

@x66ccff

Besides this method, are there any others?

@allowscalar xr = replace(xr, NaN => 1e9)

I found that using @allowscalar is particularly slow. I looked into the methods in Ops.jl, but I couldn't find a way to avoid @allowscalar.

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