Skip to content

improve type stability in jacobian for a certain case#558

Merged
KristofferC merged 1 commit intomasterfrom
kc/type_stability
Nov 20, 2021
Merged

improve type stability in jacobian for a certain case#558
KristofferC merged 1 commit intomasterfrom
kc/type_stability

Conversation

@KristofferC
Copy link
Collaborator

@KristofferC KristofferC commented Nov 19, 2021

See test. It seems this started failing in 1.7 for some reason:

julia> VERSION
v"1.7.0-rc3"

julia> using ForwardDiff

julia> g!(dy, y) = dy[1] = y[1]
g! (generic function with 1 method)

julia> @inferred ForwardDiff.jacobian(g!, [1.0], [0.0])
ERROR: return type Matrix{Float64} does not match inferred return type Any

@KristofferC KristofferC merged commit ae3cb15 into master Nov 20, 2021
@KristofferC KristofferC deleted the kc/type_stability branch November 20, 2021 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant