solve_ols: solve_ols function

Description Usage Arguments Value Examples

Description

solve_ols function

Usage

1
solve_ols(A, b, n_cores = 2, method, n_iter = 100)

Arguments

A

the (square) matrix of coefficients of the linear system

b

vector of values for each of the linear equation in the system

n_cores

specifies the number of cores for parallel computing framework

method

specifies the method to solve the linear system, "GS" for Gauss-Seidel, "Jacobi" for Jacobi

n_iter

states the number of iterations to convergence/stop updates. Default is 100

Value

The solution vector x for linear system Ax = b

Examples

1
solve_ols(diag(rep(1, 3)), rep(1,3), n_cores = 2, method='GS', n_iter = 100)

vs385/stsci6520 documentation built on May 21, 2019, 12:35 a.m.