Skip to content

Commit

Permalink
Fix Kaczmarz tikhonov test for GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Nov 26, 2024
1 parent 178a581 commit d5ccb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testKaczmarz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Random.seed!(12345)
S = createLinearSolver(Kaczmarz, arrayType(A), iterations=100, reg=[L2Regularization(λ)])
x_standard = Array(solve!(S, arrayType(b)))

S = createLinearSolver(Kaczmarz, arrayType(A), iterations=100, reg=[L2Regularization(fill(λ, N))])
S = createLinearSolver(Kaczmarz, arrayType(A), iterations=100, reg=[L2Regularization(arrayType(fill(λ, N)))])
x_matrix = Array(solve!(S, arrayType(b)))
@test isapprox(x_standard, x_matrix)
end
Expand Down

0 comments on commit d5ccb86

Please sign in to comment.