@@ -7,15 +7,16 @@ struct ForwardDiffJacobianCache{CO, CA, J, FX, X} <: AbstractMaybeSparseJacobian
77end
88
99function sparse_jacobian_cache (ad:: Union{AutoSparseForwardDiff, AutoForwardDiff} ,
10- sd:: AbstractMaybeSparsityDetection , f, x; fx= nothing )
10+ sd:: AbstractMaybeSparsityDetection , f, x; fx = nothing )
1111 coloring_result = sd (ad, f, x)
1212 fx = fx === nothing ? similar (f (x)) : fx
1313 if coloring_result isa NoMatrixColoring
1414 cache = ForwardDiff. JacobianConfig (f, x)
1515 jac_prototype = nothing
1616 else
17- cache = ForwardColorJacCache (f, x, __chunksize (ad); coloring_result. colorvec, dx= fx,
18- sparsity= coloring_result. jacobian_sparsity)
17+ cache = ForwardColorJacCache (f, x, __chunksize (ad); coloring_result. colorvec,
18+ dx = fx,
19+ sparsity = coloring_result. jacobian_sparsity)
1920 jac_prototype = coloring_result. jacobian_sparsity
2021 end
2122 return ForwardDiffJacobianCache (coloring_result, cache, jac_prototype, fx, x)
@@ -29,7 +30,7 @@ function sparse_jacobian_cache(ad::Union{AutoSparseForwardDiff, AutoForwardDiff}
2930 jac_prototype = nothing
3031 else
3132 cache = ForwardColorJacCache (f!, x, __chunksize (ad); coloring_result. colorvec,
32- dx= fx, sparsity= coloring_result. jacobian_sparsity)
33+ dx = fx, sparsity = coloring_result. jacobian_sparsity)
3334 jac_prototype = coloring_result. jacobian_sparsity
3435 end
3536 return ForwardDiffJacobianCache (coloring_result, cache, jac_prototype, fx, x)
0 commit comments