Skip to content

Commit

Permalink
Refactor for more readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Oct 28, 2023
1 parent fb51cd8 commit 5081d50
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions test/basictests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,19 +220,16 @@ end
end
end

test_algs = if VERSION >= v"1.9"
(LUFactorization(),
QRFactorization(),
SVDFactorization(),
RFLUFactorization(),
MKLLUFactorization(),
LinearSolve.defaultalg(prob1.A, prob1.b))
else
(LUFactorization(),
QRFactorization(),
SVDFactorization(),
RFLUFactorization(),
LinearSolve.defaultalg(prob1.A, prob1.b))
test_algs = [
LUFactorization(),
QRFactorization(),
SVDFactorization(),
RFLUFactorization(),
LinearSolve.defaultalg(prob1.A, prob1.b),
]

if VERSION >= v"1.9"
push!(test_algs, MKLLUFactorization())
end

@testset "Concrete Factorizations" begin
Expand Down

0 comments on commit 5081d50

Please sign in to comment.