Skip to content

Commit 6dd5925

Browse files
committed
rmd copy of solve-function testset
1 parent a232e44 commit 6dd5925

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

test/basictests.jl

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -318,35 +318,4 @@ end
318318
end
319319
end
320320

321-
@testset "Solve Function" begin
322-
323-
A1 = rand(n) |> Diagonal; b1 = rand(n); x1 = zero(b1)
324-
A2 = rand(n) |> Diagonal; b2 = rand(n); x2 = zero(b1)
325-
326-
function sol_func(A,b,u,p,newA,Pl,Pr,solverdata;verbose=true, kwargs...)
327-
if verbose == true
328-
println("out-of-place solve")
329-
end
330-
u = A \ b
331-
end
332-
333-
function sol_func!(A,b,u,p,newA,Pl,Pr,solverdata;verbose=true, kwargs...)
334-
if verbose == true
335-
println("in-place solve")
336-
end
337-
ldiv!(u,A,b)
338-
end
339-
340-
prob1 = LinearProblem(A1, b1; u0=x1)
341-
prob2 = LinearProblem(A1, b1; u0=x1)
342-
343-
for alg in (
344-
LinearSolveFunction(),
345-
LinearSolveFunction(sol_func),
346-
LinearSolveFunction(sol_func!),
347-
)
348-
test_interface(alg, prob1, prob2)
349-
end
350-
end
351-
352321
end # testset

0 commit comments

Comments
 (0)