Skip to content

Commit 1dd6e74

Browse files
committed
Fix type-stability
1 parent 88cd8f5 commit 1dd6e74

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ext/ImplicitDifferentiationForwardDiffExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ function (implicit::ImplicitFunction)(
2222
suggested_backend = AutoForwardDiff()
2323
A = build_A(implicit, prep, x, y, z, c, args...; suggested_backend)
2424
B = build_B(implicit, prep, x, y, z, c, args...; suggested_backend)
25-
if linear_solver isa IterativeLeastSquaresSolver
26-
Aᵀ = build_Aᵀ(implicit, prep, x, y, z, c, args...; suggested_backend)
25+
Aᵀ = if linear_solver isa IterativeLeastSquaresSolver
26+
build_Aᵀ(implicit, prep, x, y, z, c, args...; suggested_backend)
2727
else
28-
Aᵀ = nothing
28+
nothing
2929
end
3030

3131
dX = ntuple(k -> partials.(x_and_dx, k), Val(N))

test/systematic.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ end;
2828
[
2929
IterativeLinearSolver(),
3030
IterativeLinearSolver(; rtol=1e-8),
31-
IterativeLinearSolver(; issymmetric=true, isposdef=true),
3231
IterativeLeastSquaresSolver(),
3332
],
3433
[nothing, (; x=AutoForwardDiff(), y=AutoZygote())],

0 commit comments

Comments
 (0)