Skip to content

Commit

Permalink
Randomized Kaczmarz
Browse files Browse the repository at this point in the history
  • Loading branch information
Lina-Nawwas committed Mar 1, 2022
1 parent e275077 commit 184177f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KaczmarzUpdated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 184177f

Please sign in to comment.