Skip to content

Fix #20: Add isless(a,b) for GraDual type - #23

Merged
papamarkou merged 1 commit into
JuliaDiff:masterfrom
vrld:patch-1
May 24, 2015
Merged

papamarkou merged 1 commit into
JuliaDiff:masterfrom
vrld:patch-1

Conversation

@vrld

@vrld vrld commented Apr 16, 2015

Copy link
Copy Markdown
Contributor

Add isless(x1::GraDual, x2) and isless(x1, x2::GraDual) so that functions taking a minimum, maximum, etc are differentiable.

Add isless(x1::GraDual, x2) and isless(x1, x2::GraDual) so that functions taking a minimum, maximum, etc are differentiable.
@papamarkou

Copy link
Copy Markdown
Contributor

@vrld I will merge this; I was thinking of changing

isless(x1::GraDual, x2) = isless(value(x1), x2)

to

isless(x1::GraDual, x2::Number) = isless(value(x1), x2)

I will do this after merging.

papamarkou added a commit that referenced this pull request May 24, 2015
Fix #20: Add isless(a,b) for GraDual type
@papamarkou
papamarkou merged commit fec41af into JuliaDiff:master May 24, 2015
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

Successfully merging this pull request may close these issues.

2 participants