Skip to content

Missing negation operation for FloatVector? #9

@kechan

Description

@kechan

I couldn't seem to find the protocol and its extension implementation of neg(...) for FloatVector. This would allow me to do this:

let z = exp(-x)

And internally apply a Unary negation follow by an exp(...). So I like to have a concise expression for a sigmoid that run fast, and this is very often needed for machine learning.

I would do some quick test later when i have a chance and will close this in case it is defined somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions