Skip to content

Commit abdae64

Browse files
format
1 parent cbfdf8d commit abdae64

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

src/default.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function defaultalg(A::SparseMatrixCSC{Tv, Ti}, b,
4949
end
5050

5151
@static if INCLUDE_SPARSE
52-
function defaultalg(A::SparseMatrixCSC{<:Union{Float64,ComplexF64}, Ti}, b,
52+
function defaultalg(A::SparseMatrixCSC{<:Union{Float64, ComplexF64}, Ti}, b,
5353
::OperatorAssumptions{true}) where {Ti}
5454
if length(b) <= 10_000
5555
KLUFactorization()

test/basictests.jl

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using LinearSolve, LinearAlgebra, SparseArrays, MultiFloats, ForwardDiff
22
using Test
33
import Random
44

5-
const Dual64=ForwardDiff.Dual{Nothing,Float64,1}
5+
const Dual64 = ForwardDiff.Dual{Nothing, Float64, 1}
66

77
n = 8
88
A = Matrix(I, n, n)
@@ -141,11 +141,11 @@ end
141141

142142
@testset "Sparspak Factorization (Float64x1)" begin
143143
A1 = sparse(A / 1) .|> Float64x1
144-
b1 = rand(n) .|> Float64x1
145-
x1 = zero(b) .|> Float64x1
146-
A2 = sparse(A / 2) .|> Float64x1
147-
b2 = rand(n) .|> Float64x1
148-
x2 = zero(b) .|> Float64x1
144+
b1 = rand(n) .|> Float64x1
145+
x1 = zero(b) .|> Float64x1
146+
A2 = sparse(A / 2) .|> Float64x1
147+
b2 = rand(n) .|> Float64x1
148+
x2 = zero(b) .|> Float64x1
149149

150150
prob1 = LinearProblem(A1, b1; u0 = x1)
151151
prob2 = LinearProblem(A2, b2; u0 = x2)
@@ -154,11 +154,11 @@ end
154154

155155
@testset "Sparspak Factorization (Float64x2)" begin
156156
A1 = sparse(A / 1) .|> Float64x2
157-
b1 = rand(n) .|> Float64x2
158-
x1 = zero(b) .|> Float64x2
159-
A2 = sparse(A / 2) .|> Float64x2
160-
b2 = rand(n) .|> Float64x2
161-
x2 = zero(b) .|> Float64x2
157+
b1 = rand(n) .|> Float64x2
158+
x1 = zero(b) .|> Float64x2
159+
A2 = sparse(A / 2) .|> Float64x2
160+
b2 = rand(n) .|> Float64x2
161+
x2 = zero(b) .|> Float64x2
162162

163163
prob1 = LinearProblem(A1, b1; u0 = x1)
164164
prob2 = LinearProblem(A2, b2; u0 = x2)
@@ -167,18 +167,17 @@ end
167167

168168
@testset "Sparspak Factorization (Dual64)" begin
169169
A1 = sparse(A / 1) .|> Dual64
170-
b1 = rand(n) .|> Dual64
171-
x1 = zero(b) .|> Dual64
172-
A2 = sparse(A / 2) .|> Dual64
173-
b2 = rand(n) .|> Dual64
174-
x2 = zero(b) .|> Dual64
170+
b1 = rand(n) .|> Dual64
171+
x1 = zero(b) .|> Dual64
172+
A2 = sparse(A / 2) .|> Dual64
173+
b2 = rand(n) .|> Dual64
174+
x2 = zero(b) .|> Dual64
175175

176176
prob1 = LinearProblem(A1, b1; u0 = x1)
177177
prob2 = LinearProblem(A2, b2; u0 = x2)
178178
test_interface(SparspakFactorization(), prob1, prob2)
179179
end
180180

181-
182181
@testset "FastLAPACK Factorizations" begin
183182
A1 = A / 1
184183
b1 = rand(n)

0 commit comments

Comments
 (0)