Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement negation on StructuralTangents #669

Open
oxinabox opened this issue Mar 15, 2024 · 0 comments
Open

Implement negation on StructuralTangents #669

oxinabox opened this issue Mar 15, 2024 · 0 comments
Labels
good first issue Good for newcomers Structural Tangent Related to the `Tangent` type for structured (composite) values

Comments

@oxinabox
Copy link
Member

I was sure we had this already, but it seems not.

Implementation should be simple
Base.:-(t::StructuralTangent) = map(-, t)
plus tests

@oxinabox oxinabox added good first issue Good for newcomers Structural Tangent Related to the `Tangent` type for structured (composite) values labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Structural Tangent Related to the `Tangent` type for structured (composite) values
Projects
None yet
Development

No branches or pull requests

1 participant