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

A definition of isless for GraDual? #20

Closed
ikirill opened this issue Feb 26, 2015 · 1 comment
Closed

A definition of isless for GraDual? #20

ikirill opened this issue Feb 26, 2015 · 1 comment

Comments

@ikirill
Copy link

ikirill commented Feb 26, 2015

Shouldn't GraDual{T} be comparable to T so that isless(graDual, x) == isless(graDual.v, x)?

Otherwise it's not possible to differentiate x > 0 ? x : -x

@papamarkou
Copy link
Contributor

@ikirill do you want to submit a PR about this?

papamarkou added a commit that referenced this issue May 24, 2015
Fix #20: Add isless(a,b) for GraDual type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants