File tree Expand file tree Collapse file tree 2 files changed +0
-37
lines changed
Expand file tree Collapse file tree 2 files changed +0
-37
lines changed Original file line number Diff line number Diff line change 1313 matrix :
1414 group :
1515 - All
16- - LinearSolveCUDA
1716 - LinearSolvePardiso
1817 version :
1918 - ' 1'
Original file line number Diff line number Diff line change 178178 end
179179end
180180
181- @testset " PardisoJL" begin
182- @test_throws UndefVarError alg = PardisoJL ()
183-
184- using Pardiso, SparseArrays
185-
186- A1 = sparse ([ 1. 0 - 2 3
187- 0 5 1 2
188- - 2 1 4 - 7
189- 3 2 - 7 5 ])
190- b1 = rand (4 )
191- prob1 = LinearProblem (A1, b1)
192-
193- lambda = 3
194- e = ones (n)
195- e2 = ones (n- 1 )
196- A2 = spdiagm (- 1 => im* e2, 0 => lambda* e, 1 => - im* e2)
197- b2 = rand (n) + im * zeros (n)
198-
199- prob2 = LinearProblem (A2, b2)
200-
201- for alg in (
202- PardisoJL (),
203- MKLPardisoFactorize (),
204- MKLPardisoIterate (),
205- )
206-
207- u = solve (prob1, alg; cache_kwargs... ). u
208- @test A1 * u ≈ b1
209-
210- u = solve (prob2, alg; cache_kwargs... ). u
211- @test eltype (u) <: Complex
212- @test_broken A2 * u ≈ b2
213- end
214-
215- end
216-
217181@testset " Preconditioners" begin
218182 @testset " Vector Diagonal Preconditioner" begin
219183 s = rand (n)
You can’t perform that action at this time.
0 commit comments