diff options
author | Ilhan Özgen <ilhan.oezgen@wahyd.tu-berlin.de> | 2017-06-08 15:53:49 +0200 |
---|---|---|
committer | Ilhan Özgen <ilhan.oezgen@wahyd.tu-berlin.de> | 2017-06-08 15:53:49 +0200 |
commit | 3b37539488c39de3eb5722f75602d0d449f51b8f (patch) | |
tree | 580edf861b50f86422edad9437048206b58b0202 | |
parent | 29d6b487f776c83c11055a4a5a310751c45da87d (diff) |
clean up comments in solver
-rw-r--r-- | solver.c | 10 | ||||
-rw-r--r-- | solver.h | 5 |
2 files changed, 8 insertions, 7 deletions
@@ -2,11 +2,9 @@ * solver.c * -------- * - * gradient-based iterative solver for linear systems of equations + * gradient-based iterative solvers for linear systems of equations * Ax = b * - * this is the unpreconditioned bicgstab. - * * the return value indicates convergence within max_iter (input) * iterations (0), or no convergence within max_iter iterations (1). * @@ -37,6 +35,11 @@ // ---------------------------------------------------------------------------- +/* + * preconditioned biconjugate gradient stabilized solver + * m : preconditioner matrix + * inout: x0 (in: initial guess, out: final result) + */ int bic(struct diag* a, double* b, double* x0, struct diag* m, double tol) { @@ -179,7 +182,6 @@ int bic(struct diag* a, double* b, double* x0, struct diag* m, double tol) * symmetric matrices only * c : preconditioner matrix * inout: x0 (in: initial guess, out: final result) - * inout: tol (in: tolerance crit., out: achieved accuracy) */ int pcg(struct diag* a, double* b, double* x0, struct diag* c, double tol) { @@ -2,11 +2,9 @@ * solver.h * -------- * - * gradient-based iterative solver for linear systems of equations + * gradient-based iterative solvers for linear systems of equations * Ax = b * - * this is the unpreconditioned bicgstab. - * * the return value indicates convergence within max_iter (input) * iterations (0), or no convergence within max_iter iterations (1). * @@ -20,6 +18,7 @@ * @date 10 apr 17 * @date 11 apr 17 : add norm function * @date 28 apr 17 : add pcg solver + * @date 8 jun 17 : add bicgstab solver * **/ |