![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
Smoothers for dCSRmat matrices. More...
Go to the source code of this file.
Functions | |
void | fasp_smoother_dcsr_jacobi_ff (dvector *x, dCSRmat *A, dvector *b, const INT nsweeps, INT *ordering, const REAL relax) |
Weighted Jacobi method as a smoother only for the fine points. More... | |
void | fasp_smoother_dcsr_jacobi (dvector *u, const INT i_1, const INT i_n, const INT s, dCSRmat *A, dvector *b, INT L, const REAL w) |
Weighted Jacobi method as a smoother. More... | |
void | fasp_smoother_dcsr_gs (dvector *u, const INT i_1, const INT i_n, const INT s, dCSRmat *A, dvector *b, INT L) |
Gauss-Seidel method as a smoother. More... | |
void | fasp_smoother_dcsr_gs_cf (dvector *u, dCSRmat *A, dvector *b, INT L, INT *mark, const INT order) |
Gauss-Seidel smoother with C/F ordering for Au=b. More... | |
void | fasp_smoother_dcsr_gs_ff (dvector *u, dCSRmat *A, dvector *b, INT L, INT *mark) |
Gauss-Seidel smoother with on F-points only for Au=b. More... | |
void | fasp_smoother_dcsr_sgs (dvector *u, dCSRmat *A, dvector *b, INT L) |
Symmetric Gauss-Seidel method as a smoother. More... | |
void | fasp_smoother_dcsr_sor (dvector *u, const INT i_1, const INT i_n, const INT s, dCSRmat *A, dvector *b, INT L, const REAL w) |
SOR method as a smoother. More... | |
void | fasp_smoother_dcsr_sor_cf (dvector *u, dCSRmat *A, dvector *b, INT L, const REAL w, INT *mark, const INT order) |
SOR smoother with C/F ordering for Au=b. More... | |
void | fasp_smoother_dcsr_ilu (dCSRmat *A, dvector *b, dvector *x, void *data) |
ILU method as a smoother. More... | |
void | fasp_smoother_dcsr_kaczmarz (dvector *u, const INT i_1, const INT i_n, const INT s, dCSRmat *A, dvector *b, INT L, const REAL w) |
Kaczmarz method as a smoother. More... | |
void | fasp_smoother_dcsr_L1diag (dvector *u, const INT i_1, const INT i_n, const INT s, dCSRmat *A, dvector *b, INT L) |
Diagonal scaling (using L1 norm) as a smoother. More... | |
Smoothers for dCSRmat matrices.
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file ItrSmootherCSR.c.
void fasp_smoother_dcsr_gs | ( | dvector * | u, |
const INT | i_1, | ||
const INT | i_n, | ||
const INT | s, | ||
dCSRmat * | A, | ||
dvector * | b, | ||
INT | L | ||
) |
Gauss-Seidel method as a smoother.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
i_1 | Starting index |
i_n | Ending index |
s | Increasing step |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
Modified by Chunsheng Feng, Zheng Li on 09/01/2012
Definition at line 250 of file ItrSmootherCSR.c.
void fasp_smoother_dcsr_gs_cf | ( | dvector * | u, |
dCSRmat * | A, | ||
dvector * | b, | ||
INT | L, | ||
INT * | mark, | ||
const INT | order | ||
) |
Gauss-Seidel smoother with C/F ordering for Au=b.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
mark | C/F marker array |
order | C/F ordering: -1: F-first; 1: C-first |
Modified by Chunsheng Feng, Xiaoqiang Yue on 05/24/2012
Definition at line 431 of file ItrSmootherCSR.c.
Gauss-Seidel smoother with on F-points only for Au=b.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
mark | C/F marker array |
Definition at line 712 of file ItrSmootherCSR.c.
ILU method as a smoother.
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
x | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
data | Pointer to user defined data |
form residual zr = b - A x
Definition at line 1279 of file ItrSmootherCSR.c.
void fasp_smoother_dcsr_jacobi | ( | dvector * | u, |
const INT | i_1, | ||
const INT | i_n, | ||
const INT | s, | ||
dCSRmat * | A, | ||
dvector * | b, | ||
INT | L, | ||
const REAL | w | ||
) |
Weighted Jacobi method as a smoother.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
i_1 | Starting index |
i_n | Ending index |
s | Increasing step |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
w | Over-relaxation weight |
Modified by Chunsheng Feng, Zheng Li on 08/29/2012 Modified by Chensong Zhang on 08/24/2017: Pass weight w as a parameter
Definition at line 97 of file ItrSmootherCSR.c.
void fasp_smoother_dcsr_jacobi_ff | ( | dvector * | x, |
dCSRmat * | A, | ||
dvector * | b, | ||
const INT | nsweeps, | ||
INT * | ordering, | ||
const REAL | relax | ||
) |
Weighted Jacobi method as a smoother only for the fine points.
Definition at line 34 of file ItrSmootherCSR.c.
void fasp_smoother_dcsr_kaczmarz | ( | dvector * | u, |
const INT | i_1, | ||
const INT | i_n, | ||
const INT | s, | ||
dCSRmat * | A, | ||
dvector * | b, | ||
INT | L, | ||
const REAL | w | ||
) |
Kaczmarz method as a smoother.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
i_1 | Starting index |
i_n | Ending index |
s | Increasing step |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
w | Over-relaxation weight |
Modified by Chunsheng Feng, Zheng Li on 2012/09/01
Definition at line 1362 of file ItrSmootherCSR.c.
void fasp_smoother_dcsr_L1diag | ( | dvector * | u, |
const INT | i_1, | ||
const INT | i_n, | ||
const INT | s, | ||
dCSRmat * | A, | ||
dvector * | b, | ||
INT | L | ||
) |
Diagonal scaling (using L1 norm) as a smoother.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
i_1 | Starting index |
i_n | Ending index |
s | Increasing step |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
Modified by Chunsheng Feng, Zheng Li on 09/01/2012
Definition at line 1508 of file ItrSmootherCSR.c.
Symmetric Gauss-Seidel method as a smoother.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
Modified by Chunsheng Feng, Zheng Li on 09/01/2012
Definition at line 807 of file ItrSmootherCSR.c.
void fasp_smoother_dcsr_sor | ( | dvector * | u, |
const INT | i_1, | ||
const INT | i_n, | ||
const INT | s, | ||
dCSRmat * | A, | ||
dvector * | b, | ||
INT | L, | ||
const REAL | w | ||
) |
SOR method as a smoother.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
i_1 | Starting index |
i_n | Ending index |
s | Increasing step |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
w | Over-relaxation weight |
Modified by Chunsheng Feng, Zheng Li on 09/01/2012
Definition at line 931 of file ItrSmootherCSR.c.
void fasp_smoother_dcsr_sor_cf | ( | dvector * | u, |
dCSRmat * | A, | ||
dvector * | b, | ||
INT | L, | ||
const REAL | w, | ||
INT * | mark, | ||
const INT | order | ||
) |
SOR smoother with C/F ordering for Au=b.
u | Pointer to dvector: the unknowns (IN: initial, OUT: approximation) |
A | Pointer to dBSRmat: the coefficient matrix |
b | Pointer to dvector: the right hand side |
L | Number of iterations |
w | Over-relaxation weight |
mark | C/F marker array |
order | C/F ordering: -1: F-first; 1: C-first |
Modified by Chunsheng Feng, Zheng Li on 08/29/2012
Definition at line 1061 of file ItrSmootherCSR.c.