ForwardDiff.jl
ForwardDiff.jl copied to clipboard
Forward Mode Automatic Differentiation for Julia
This pull request changes the compat entry for the `StaticArrays` package from `1.5 - 1.6` to `1.5 - 1.6, 1`. This keeps the compat entries for earlier versions. Note: I...
See e.g. https://github.com/JuliaDiff/ForwardDiff.jl/actions/runs/8194354842/job/22410181345. The allocations only appear when bounds checking is enables. In https://github.com/JuliaDiff/ForwardDiff.jl/pull/688, I'm marking them as broken.
``` using ForwardDiff E(x) = abs2(x[1]) xf = randn(ComplexF64, 2) # WRONG r2c(x) = reinterpret(ComplexF64, x) c2r(x) = reinterpret(Float64, x) # # OK # r2c(x) = x[1:2] + im*x[3:4] #...
 
In `Zygote.jl`, we can take the gradient with respect to all fields of a struct `foo` passed through a function `bar` via ```julia g = Zygote.gradient(f -> bar(f), foo) ```...
When investigating the [diff between master and release-0.10](https://github.com/JuliaDiff/ForwardDiff.jl/compare/master...release-0.10), I noticed that #656 was only applied to the release-0.10 branch. It doesn't contain any explanation or discussion, so it's a bit...
This PR backports #708 to the branch for ForwardDiff 0.10 and bumps the version number to prepare for a new release.
`ArrayPartition` is a useful structure to concatenate arrays of different types. The type is defined in [SciML/RecursiveArrayTools.jl](https://github.com/SciML/RecursiveArrayTools.jl?tab=readme-ov-file) `ArrayPartition`s are also used in many places in `SciML` ecosystem, but also in...
I tried to use ForwardDiff on the upper incomplete gamma function as provided in [SpecialFunctions.jl](https://github.com/JuliaMath/SpecialFunctions.jl/blob/124915fce203925b69fa1a295a2ab3025cbe3f3c/src/gamma_inc.jl#L1099-L1113) Calling it with the first argument being an integer did work fine, but changing it...
I previously raised this issue here, https://github.com/FluxML/Zygote.jl/issues/1532, but was recommended it would be more appropriate here. **My environment. I have seen the same issue on Linux machines** Julia Version 1.11.0...