Skip to content

Commit c8af416

Browse files
format
1 parent 743b0d3 commit c8af416

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/common.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
112112

113113
A = alias_A ? A : deepcopy(A)
114114
b = if b isa SparseArray && !(A isa Diagonal)
115-
Array(b) # the solution to a linear solve will always be dense!
116-
elseif alias_b
117-
b
118-
else
119-
deepcopy(b)
120-
end
115+
Array(b) # the solution to a linear solve will always be dense!
116+
elseif alias_b
117+
b
118+
else
119+
deepcopy(b)
121120
end
122121

123122
cache = LinearCache{

src/default.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ end
154154

155155
function defaultalg(A::SparseMatrixCSC, b, ::OperatorAssumptions{true})
156156
# If GPL libraries are loaded, then use SuiteSparse. Otherwise Sparspak
157-
if INCLUDE_SPARSE
157+
if INCLUDE_SPARSE
158158
if length(b) <= 10000
159159
alg = KLUFactorization()
160160
else

src/factorization_sparse.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ function _ldiv!(x::Vector,
55
SuiteSparse.SPQR.QRSparse,
66
SuiteSparse.CHOLMOD.Factor}, b::Vector)
77
x .= A \ b
8-
end
8+
end

0 commit comments

Comments
 (0)