Skip to content

Commit 03ae773

Browse files
format
1 parent c379611 commit 03ae773

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/factorization.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ end
8484
function do_factorization(alg::LUFactorization, A, b, u)
8585
A = convert(AbstractMatrix, A)
8686
if A isa AbstractSparseMatrixCSC
87-
return lu(SparseMatrixCSC(size(A)..., getcolptr(A), rowvals(A), nonzeros(A)), check=false)
87+
return lu(SparseMatrixCSC(size(A)..., getcolptr(A), rowvals(A), nonzeros(A)),
88+
check = false)
8889
else
8990
fact = lu!(A, alg.pivot, check = false)
9091
end

test/default_algs.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
using LinearSolve, LinearAlgebra, SparseArrays, Test, JET
22
@test LinearSolve.defaultalg(nothing, zeros(3)).alg ===
33
LinearSolve.DefaultAlgorithmChoice.GenericLUFactorization
4-
prob = LinearProblem(rand(3,3), rand(3))
4+
prob = LinearProblem(rand(3, 3), rand(3))
55
solve(prob)
66

77
@test LinearSolve.defaultalg(nothing, zeros(50)).alg ===
88
LinearSolve.DefaultAlgorithmChoice.RFLUFactorization
9-
prob = LinearProblem(rand(50,50), rand(50))
9+
prob = LinearProblem(rand(50, 50), rand(50))
1010
solve(prob)
11-
11+
1212
@test LinearSolve.defaultalg(nothing, zeros(600)).alg ===
1313
LinearSolve.DefaultAlgorithmChoice.GenericLUFactorization
14-
prob = LinearProblem(rand(600,600), rand(600))
14+
prob = LinearProblem(rand(600, 600), rand(600))
1515
solve(prob)
1616

1717
@test LinearSolve.defaultalg(LinearAlgebra.Diagonal(zeros(5)), zeros(5)).alg ===
@@ -31,8 +31,6 @@ solve(prob)
3131
prob = LinearProblem(sprand(11000, 11000, 0.5), zeros(11000))
3232
solve(prob)
3333

34-
35-
3634
@static if VERSION >= v"v1.7-"
3735
# Test inference
3836
A = rand(4, 4)

0 commit comments

Comments
 (0)