[julia-users] `<` and `isless` for GradientNumber (ForwardDiff.jl)

2015-12-10 Thread Kristoffer Carlsson
What Julia version are you on? Can you please paste some code that reproduces 
the error.

[julia-users] `<` and `isless` for GradientNumber (ForwardDiff.jl)

2015-12-10 Thread Pablo Zubieta
Hi everyone

I was using ForwardDiff.jl and found that I can't use <(g::GradientNumber, 
x::Real), whereas I can use isless(g::GradientNumber, x::Real)

If I define a custom type and the corresponding isless method I can use < 
automatically. Why is that it is not the case for GradienNumber?

Thanks,
Pablo Zubieta