Skip to content

Implement isfinite function #1870

@jessegrabowski

Description

@jessegrabowski

Description

We have all the pieces (isnan, isinf), but we don't have isfinite. Something like:

def isfinite(x):
    return pt.bitwise_and(~pt.isnan(x),  ~pt.isinf(x))

Maybe there are more cases I'm not thinking about.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions