Skip to content

Commit 6a8082f

Browse files
Add initial guess to Richardson (#30)
1 parent 9996132 commit 6a8082f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/07_Iterative_methods.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ We formulate Richardson's iterations:
108108
!!! info "Algorithm 1: Richardson iteration"
109109
Let $\mathbf{A} \in \mathbb{R}^{n\times n}$ be a system matrix,
110110
right-hand side $\mathbf{b} \in \mathbb{R}^n$, an invertible
111-
preconditioner $\mathbf{P} \in \mathbb{R}^{n\times n}$
111+
preconditioner $\mathbf{P} \in \mathbb{R}^{n\times n}$,
112+
an initial guess $\mathbf{x}^{(0)} \in \mathbb{R}^n$
112113
as well as the desired convergence tolerance $ε$.
113114
For $k = 0, 1, \ldots$ iterate:
114115
1. Compute residual $\mathbf{r}^{(k)} = \mathbf{b} - \mathbf{A} \mathbf{x}^{(k)}$

0 commit comments

Comments
 (0)