Skip to content

Question: negation for f64 #32

Closed
egraphs-good/egglog
#168
@wbthomason

Description

@wbthomason

Thanks for the library! I've been trying to use egglog for some numerical code, and have run into the missing unary negation operator for f64. I've tried patching this in myself analogously to its implementation for Rational, but I only end up with an error No matching primitive for: (neg f64).

Is there a more fundamental reason that negation is unsupported for f64? Could you help me figure out how to add this? Thanks!

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