ForwardDiff.jl icon indicating copy to clipboard operation
ForwardDiff.jl copied to clipboard

Forward Mode Automatic Differentiation for Julia

Results 187 ForwardDiff.jl issues
Sort by recently updated
recently updated
newest added

@vtjnash was able to rewrite the classic perturbation confusion example into a form that thwarts ForwardDiff's tag generation: ```julia julia> using ForwardDiff julia> const D = ForwardDiff.derivative derivative (generic function...

As reported by @tkoolen [here](https://github.com/JuliaDiff/ForwardDiff.jl/pull/247#issuecomment-331932737). Note from my comment there - this does not seem to be a case of pertubation confusion, but rather an an inference problem of some...

Hi all, We have a big codebase that uses `FieldVector`s from static arrays. It would be extremely powerful for us (and I'm sure many others in the future) to be...

The computation of the Hessian of the squared euclidean norm results in an interesting output: ``` using ForwardDiff; f(x::Vector) = .5*norm(x, 2)^2; x = zeros(2); ForwardDiff.hessian(f, x) ``` which is...

I need to treat a complex function `f: C → C` as a function from R^2 to R^2. I am doing this as follows: ```jl julia 0.6> function realify(f) function...

My function evaluates the `lgamma` function at complex values. I ran into the following error: ```julia ERROR: MethodError: no method matching lgamma(::Complex{ForwardDiff.Dual{ForwardDiff.Tag{ElementarySymmetricFunctions.#logLC#42{Array{Float64,1},Array{Int64,1}},Float64},Float64,10}}) ``` MWE: ```julia julia> lgamma(Complex(ForwardDiff.Dual(5.0))) ERROR: MethodError: no...

Could not reduce this to a MWE yet, but I get this error message when using `ForwardDiff.jacobian` on a problem that uses the QR decomposition for least squares. ```julia ERROR:...

I can't figure this one out. When I try in the debugger or with `--inline=no`, it works correctly! ``` julia> using ForwardDiff julia> ForwardDiff.gradient([1.0]) do s ForwardDiff.hessian(u -> u[1]/s[1], [1.0])[1]...

Hi all ! I would like to concatenate a vector of `Dual` with a `Real` as the following ```julia T = 1 p = Array{Dual}(N) k = 2 ps =...

```julia a = ForwardDiff.Dual(1.0,1.0) b = ForwardDiff.Dual(0.0,1.0) c = ForwardDiff.Dual(10.0,1.0) b:a:c MethodError: Cannot `convert` an object of type ForwardDiff.Dual{Void,Float64,1} to an object of type Signed This may have arisen from...