Description Usage Arguments Value Author(s)
solve.ols is a function that solves linear system using either Gauss-Seidel or Jacobi. It assumes that the spectral norm of A is less than 1 to solve.
1 2 3 4 5 6 7 8 9 10 11 |
A |
Linear System to be solved |
b |
Constant Vector |
x0 |
Initial solution guess |
maxiter |
Maximum Number of Iteration |
tol |
Tolerance of the difference between two result from iteration |
numCores |
Only applicable when parallel == TRUE, this |
parallel |
Whether to use the paralleled version, Only available when using "Jacobi". Default is FALSE. |
method |
Method to use, default is "Gauss-Seidel", and can be "Jacobi" |
full_result |
Whether to return a result of each iteration |
The function would return the solution to the linear system or the full record of each iteration. This depends on the option of full_result.
Xiaohan Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.