From d5ccb8612b4c7167aa4f54d85b42b53ee73a7b97 Mon Sep 17 00:00:00 2001 From: nHackel Date: Tue, 26 Nov 2024 16:11:30 +0100 Subject: [PATCH] Fix Kaczmarz tikhonov test for GPUs --- test/testKaczmarz.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testKaczmarz.jl b/test/testKaczmarz.jl index a877069..e4dd3ee 100644 --- a/test/testKaczmarz.jl +++ b/test/testKaczmarz.jl @@ -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