Skip to content

ufunc identity of -inf #7702

@mikegraham

Description

@mikegraham

I would like to write a function that, given log(x) and log(y), will compute log(x + y). The identity for this is log(0) = -inf. Currently, numpy only allows the values of 0, 1, -1, and None, as far as I can tell. It would be nice for my purposes if -inf or an arbitrary value could be used.

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