From 22511ca1624031c118420196a364c35649900a99 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Sat, 31 Dec 2022 09:15:27 -0500 Subject: [PATCH] format --- test/basictests.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/basictests.jl b/test/basictests.jl index f82606476..de7e081e0 100644 --- a/test/basictests.jl +++ b/test/basictests.jl @@ -212,17 +212,18 @@ end @testset "CHOLMOD" begin # Create a posdef symmetric matrix - A = sprand(100,100,0.01); A = A + A' + 100*I; + A = sprand(100, 100, 0.01) + A = A + A' + 100 * I # rhs - b=rand(100); + b = rand(100) # Set the problem - prob = LinearProblem(A,b) + prob = LinearProblem(A, b) sol = solve(prob) # Enforce symmetry to use Cholesky, since A is symmetric and posdef - prob2 = LinearProblem(Symmetric(A),b) + prob2 = LinearProblem(Symmetric(A), b) sol2 = solve(prob2) @test abs(norm(A * sol2.u .- b) - norm(A * sol.u .- b)) < 1e-12 end