From 184177f8def38a0612dd4b909f98cecf13ba5b38 Mon Sep 17 00:00:00 2001 From: Lina-Nawwas Date: Tue, 1 Mar 2022 09:33:06 +0000 Subject: [PATCH] Randomized Kaczmarz --- src/KaczmarzUpdated.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KaczmarzUpdated.jl b/src/KaczmarzUpdated.jl index e55caba5..a1976e34 100644 --- a/src/KaczmarzUpdated.jl +++ b/src/KaczmarzUpdated.jl @@ -193,7 +193,7 @@ end function iterate(solver::KaczmarzUpdated, iteration::Int=0) if done(solver,iteration) return nothing end - if Randomized + if solver.Randomized UsedIndex=Int.(StatsBase.sample!(Random.GLOBAL_RNG, solver.rowIndexCycle, solver.Probabilities, zeros(solver.SubMatrixSize), replace=false)) else UsedIndex=solver.rowIndexCycle