Skip to content

Commit 22511ca

Browse files
format
1 parent b02562b commit 22511ca

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/basictests.jl

+5-4
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,18 @@ end
212212

213213
@testset "CHOLMOD" begin
214214
# Create a posdef symmetric matrix
215-
A = sprand(100,100,0.01); A = A + A' + 100*I;
215+
A = sprand(100, 100, 0.01)
216+
A = A + A' + 100 * I
216217

217218
# rhs
218-
b=rand(100);
219+
b = rand(100)
219220

220221
# Set the problem
221-
prob = LinearProblem(A,b)
222+
prob = LinearProblem(A, b)
222223
sol = solve(prob)
223224

224225
# Enforce symmetry to use Cholesky, since A is symmetric and posdef
225-
prob2 = LinearProblem(Symmetric(A),b)
226+
prob2 = LinearProblem(Symmetric(A), b)
226227
sol2 = solve(prob2)
227228
@test abs(norm(A * sol2.u .- b) - norm(A * sol.u .- b)) < 1e-12
228229
end

0 commit comments

Comments
 (0)