Description Usage Arguments Value Examples
Apply Gauss-Seidel or Jacobi method to solve the linear equations
1 | solve_ols(A, v, method, ncores = 1, iter.max = 10000)
|
A |
the linear matrix of coefficient |
v |
the underlying true solution |
method |
"G-S" stands for Gauss-Seidel method and "Jacobi" uses Jacobi method |
ncores |
1 stands for non-parallel computing and usually ncores<=4 |
iter.max |
the maximal number of iteration |
relative error: the relative error at each iteration
solution
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.