You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
auto_jacvec! and num_jacvec! only work when the output and input dimensions are the same, i.e., the jacobian is square. The issue is this line (and the equivalent for num_jacvec!), which should probably use both the length and eltype of dy.
auto_jacvec!andnum_jacvec!only work when the output and input dimensions are the same, i.e., the jacobian is square. The issue is this line (and the equivalent fornum_jacvec!), which should probably use both the length and eltype ofdy.SparseDiffTools.jl/src/differentiation/jaches_products.jl
Line 10 in 2dbe420
Manual cache allocation works but is surprisingly hard to get right, the implicit prescription in the README gets the wrong tag type for the duals: https://github.com/JuliaDiff/SparseDiffTools.jl#jacobian-vector-and-hessian-vector-products
The corresponding lines in
JacVecshould similarly be fixed:SparseDiffTools.jl/src/differentiation/jaches_products.jl
Line 201 in 2dbe420
auto_jacvec(!)be upstreamed to ForwardDiff? Strange to have to pull in a sparse-related package to get this functionality. Calculating J_f(x) . y efficiently ForwardDiff.jl#319MWE: