Algorithm 2.
SR1 updating.
| Initialization: a fixed real scalar, , , , and . |
| 1: if then |
| 2: . |
| 3: else |
| 4: Set and . |
| 5: Compute . |
| 6: if then |
| 7: . |
| 8: else |
| 9: . |
| 10: . |
| 11: if then |
| 12: . |
| 13: end if |
| 14: . |
| 15: end if |
| 16: end if |
| 17: Return: |
SR1 updating.
| Initialization: a fixed real scalar, , , , and . |
| 1: if then |
| 2: . |
| 3: else |
| 4: Set and . |
| 5: Compute . |
| 6: if then |
| 7: . |
| 8: else |
| 9: . |
| 10: . |
| 11: if then |
| 12: . |
| 13: end if |
| 14: . |
| 15: end if |
| 16: end if |
| 17: Return: |