-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add norm for Vector{T<:Dual} #31
Comments
see JuliaDiff/ForwardDiff.jl#52 for prior experience with this, the key is to define |
I’d expect norm(::Vector{T<:Dual}) to return a Dual. Does this change result in that?
|
The definition I'm thinking of is: float(d::Dual) = Dual(float(value(d)), float(epsilon(d))) With that definition, yes, |
OK, thanks! Are you planning to add this definition to DualNumbers.jl?
|
This has been implemented apparently. |
The text was updated successfully, but these errors were encountered: