#include <BiCGSTAB_solver.h>
|
void | get_residual_vector (scalar *r, scalar *b, SparseMatrixUnknownPattern *A, scalar *x, int N) |
|
void | copy_vector (scalar *a, scalar *b, int N) |
|
scalar | dot (scalar *a, scalar *b, int N) |
|
void | apply_diagonal_matrix (scalar *y, scalar *M, scalar *x, int N) |
|
void | zero (scalar *x, int N) |
|
void | scalar_vector_add (scalar *x, scalar *y, scalar c, scalar *z, int N) |
|
void | complicated_machine (scalar *w, scalar *x, scalar a, scalar *y, scalar b, scalar *z, int N) |
|
◆ BiCGSTAB_solver()
BiCGSTAB_solver::BiCGSTAB_solver |
( |
| ) |
|
◆ ~BiCGSTAB_solver()
BiCGSTAB_solver::~BiCGSTAB_solver |
( |
| ) |
|
◆ apply_diagonal_matrix()
Calculates y = Mx for diagonal matrix and vectors of dimension N
Referenced by solve().
◆ complicated_machine()
Carries out the operation w = x + a * (y + b * z)
Referenced by solve().
◆ copy_vector()
void BiCGSTAB_solver::copy_vector |
( |
scalar * |
a, |
|
|
scalar * |
b, |
|
|
int |
N |
|
) |
| |
|
private |
Copies the contents of vector b into vector a (a <- b)
Referenced by solve().
◆ dot()
Returns the dot product of vectors a and b, of length N
Referenced by solve().
◆ get_residual_vector()
Calculates the residual vector, r, for the matrix equation Ax = b. Specifically, r = b - Ax.
Referenced by solve().
◆ init()
int BiCGSTAB_solver::init |
( |
int |
N, |
|
|
scalar |
tol, |
|
|
int |
max_num_iterations |
|
) |
| |
◆ scalar_vector_add()
Carries out the operation x = y + c*z, where c is a scalar, and x, y and z are vectors of length N.
Referenced by solve().
◆ solve() [1/2]
◆ solve() [2/2]
◆ zero()
void BiCGSTAB_solver::zero |
( |
scalar * |
x, |
|
|
int |
N |
|
) |
| |
|
private |
Sets the given vector (length N) to zero
Referenced by init(), and solve().
◆ inv_M
scalar* BiCGSTAB_solver::inv_M |
|
private |
◆ max_num_iterations
int BiCGSTAB_solver::max_num_iterations |
|
private |
The number of unknowns.
Referenced by apply_diagonal_matrix(), BiCGSTAB_solver(), complicated_machine(), copy_vector(), dot(), get_residual_vector(), init(), scalar_vector_add(), solve(), zero(), and ~BiCGSTAB_solver().
◆ p_hat
scalar * BiCGSTAB_solver::p_hat |
|
private |
◆ r_hat
scalar * BiCGSTAB_solver::r_hat |
|
private |
◆ s_hat
scalar * BiCGSTAB_solver::s_hat |
|
private |
◆ tol
The documentation for this class was generated from the following files: