1313A, b = h ([ForwardDiff. Dual (5.0 , 1.0 , 0.0 ), ForwardDiff. Dual (5.0 , 0.0 , 1.0 )])
1414
1515prob = LinearProblem (A, b)
16- overload_x_p = solve (prob)
16+ overload_x_p = solve (prob, LUFactorization () )
1717backslash_x_p = A \ b
1818krylov_overload_x_p = solve (prob, KrylovJL_GMRES ())
1919@test ≈ (overload_x_p, backslash_x_p, rtol = 1e-9 )
@@ -42,7 +42,7 @@ prob = LinearProblem(A, b)
4242A, b = h ([ForwardDiff. Dual (10.0 , 1.0 , 0.0 ), ForwardDiff. Dual (10.0 , 0.0 , 1.0 )])
4343
4444prob = LinearProblem (A, b)
45- cache = init (prob)
45+ cache = init (prob, LUFactorization () )
4646
4747new_A, new_b = h ([ForwardDiff. Dual (5.0 , 1.0 , 0.0 ), ForwardDiff. Dual (5.0 , 0.0 , 1.0 )])
4848cache. A = new_A
@@ -60,7 +60,7 @@ backslash_x_p = new_A \ new_b
6060A, b = h ([ForwardDiff. Dual (10.0 , 1.0 , 0.0 ), ForwardDiff. Dual (10.0 , 0.0 , 1.0 )])
6161
6262prob = LinearProblem (A, b)
63- cache = init (prob)
63+ cache = init (prob, LUFactorization () )
6464
6565new_A, _ = h ([ForwardDiff. Dual (5.0 , 1.0 , 0.0 ), ForwardDiff. Dual (5.0 , 0.0 , 1.0 )])
6666cache. A = new_A
@@ -75,7 +75,7 @@ backslash_x_p = new_A \ b
7575A, b = h ([ForwardDiff. Dual (5.0 , 1.0 , 0.0 ), ForwardDiff. Dual (5.0 , 0.0 , 1.0 )])
7676
7777prob = LinearProblem (A, b)
78- cache = init (prob)
78+ cache = init (prob, LUFactorization () )
7979
8080_, new_b = h ([ForwardDiff. Dual (5.0 , 1.0 , 0.0 ), ForwardDiff. Dual (5.0 , 0.0 , 1.0 )])
8181cache. b = new_b
@@ -99,7 +99,7 @@ original_x_p = A \ b
9999@test ≈ (overload_x_p, original_x_p, rtol = 1e-9 )
100100
101101prob = LinearProblem (A, b)
102- cache = init (prob)
102+ cache = init (prob, LUFactorization () )
103103
104104new_A,
105105new_b = h ([ForwardDiff. Dual (ForwardDiff. Dual (10.0 , 1.0 , 0.0 ), 1.0 , 0.0 ),
155155A, b = h ([ForwardDiff. Dual (5.0 , 1.0 , 0.0 ), ForwardDiff. Dual (5.0 , 0.0 , 1.0 )])
156156
157157prob = LinearProblem (A, b)
158- cache = init (prob)
158+ cache = init (prob, LUFactorization () )
159159
160160new_A, new_b = h ([ForwardDiff. Dual (5.0 , 1.0 , 0.0 ), ForwardDiff. Dual (5.0 , 0.0 , 1.0 )])
161161cache. A = new_A
@@ -193,3 +193,5 @@ A, b = h([ForwardDiff.Dual(5.0, 1.0, 0.0), ForwardDiff.Dual(5.0, 0.0, 1.0)])
193193
194194prob = LinearProblem (A, b)
195195@test init (prob, GenericLUFactorization ()) isa LinearSolve. LinearCache
196+
197+ @test init (prob) isa LinearSolve. LinearCache
0 commit comments