We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b02562b commit 22511caCopy full SHA for 22511ca
test/basictests.jl
@@ -212,17 +212,18 @@ end
212
213
@testset "CHOLMOD" begin
214
# Create a posdef symmetric matrix
215
- A = sprand(100,100,0.01); A = A + A' + 100*I;
+ A = sprand(100, 100, 0.01)
216
+ A = A + A' + 100 * I
217
218
# rhs
- b=rand(100);
219
+ b = rand(100)
220
221
# Set the problem
- prob = LinearProblem(A,b)
222
+ prob = LinearProblem(A, b)
223
sol = solve(prob)
224
225
# Enforce symmetry to use Cholesky, since A is symmetric and posdef
- prob2 = LinearProblem(Symmetric(A),b)
226
+ prob2 = LinearProblem(Symmetric(A), b)
227
sol2 = solve(prob2)
228
@test abs(norm(A * sol2.u .- b) - norm(A * sol.u .- b)) < 1e-12
229
end
0 commit comments