Description Usage Arguments Value Examples
solve linear system of equations using Gauss-Seidal or Jacobi.
1 2 3 |
A |
a numeric matrix containing the coefficients of the linear system. |
b |
a numeric vector giving the right-hand side of the linear system. |
x0 |
the intial solution vector. |
method |
a character string indicating which iterative method is to use. Either 'Gauss-Seidel' or 'Jacobi'. |
maxit |
Maximum number of passes over the data for all lambda values; default is 15000. |
eps |
Convergence threshold. Defaults value is 1E-7. |
parallelize |
Logical. only useful when |
cores |
The number of cores to use for parallel execution. Default is 1. |
x.last
solution vector found in the last iteration.
x.all
a list of solutions of all iterations.
time
a vector recording time spent at iterations.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.