Algorithm 1.
Input : A, s, . |
Initialization: |
1.
= {. indices of the entries with the largest magnitudes in vector ATs} 2. r(0) = residual 3. f(0) = 0 |
Iteration : At iterations . = 1, 2, …, go through the following steps: |
1.
= {. indices of the non-zeros entries of f(.−1) and the entries with the largest magnitudes in vector ATr(.−1)} 2. Set f(.) = solve 3. r(.) = residual 4. If ‖r(.)‖>‖r(.−1)‖, quit the iteration. |
Output : The solution f = f(.−1). |