Algorithm 1.
Require: Matrix M, vector v and initialization . | |
1: | Let , p0 = r0 and k = 0 |
2: | loop |
3: | |
4: | |
5: | rk+1 = rk – αkMpk |
6: | if then |
7: | end loop |
8: | end if |
9: | |
10: | pk+1 = rk+1 + βkpk |
11: | k = k +1 |
12: | end loop |
13: | return |
Require: Matrix M, vector v and initialization . | |
1: | Let , p0 = r0 and k = 0 |
2: | loop |
3: | |
4: | |
5: | rk+1 = rk – αkMpk |
6: | if then |
7: | end loop |
8: | end if |
9: | |
10: | pk+1 = rk+1 + βkpk |
11: | k = k +1 |
12: | end loop |
13: | return |