Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
KryPminres.c File Reference

Krylov subspace methods – Preconditioned minimal residual. More...

#include <math.h>
#include "fasp.h"
#include "fasp_functs.h"
#include "KryUtil.inl"

Go to the source code of this file.

Functions

INT fasp_solver_dcsr_pminres (dCSRmat *A, dvector *b, dvector *u, precond *pc, const REAL tol, const INT MaxIt, const SHORT StopType, const SHORT PrtLvl)
 A preconditioned minimal residual (Minres) method for solving Au=b. More...
 
INT fasp_solver_dblc_pminres (dBLCmat *A, dvector *b, dvector *u, precond *pc, const REAL tol, const INT MaxIt, const SHORT StopType, const SHORT PrtLvl)
 A preconditioned minimal residual (Minres) method for solving Au=b. More...
 
INT fasp_solver_dstr_pminres (dSTRmat *A, dvector *b, dvector *u, precond *pc, const REAL tol, const INT MaxIt, const SHORT StopType, const SHORT PrtLvl)
 A preconditioned minimal residual (Minres) method for solving Au=b. More...
 
INT fasp_solver_pminres (mxv_matfree *mf, dvector *b, dvector *u, precond *pc, const REAL tol, const INT MaxIt, const SHORT StopType, const SHORT PrtLvl)
 A preconditioned minimal residual (Minres) method for solving Au=b. More...
 

Detailed Description

Krylov subspace methods – Preconditioned minimal residual.

Note
This file contains Level-3 (Kry) functions. It requires: AuxArray.c, AuxMemory.c, AuxMessage.c, BlaArray.c, BlaSpmvBLC.c, BlaSpmvCSR.c, and BlaSpmvSTR.c.o
See KrySPminres.c for a safer version

Reference: Y. Saad 2003 Iterative methods for sparse linear systems (2nd Edition), SIAM


Copyright (C) 2012–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

TODO: Use one single function for all! –Chensong

Definition in file KryPminres.c.

Function Documentation

◆ fasp_solver_dblc_pminres()

INT fasp_solver_dblc_pminres ( dBLCmat A,
dvector b,
dvector u,
precond pc,
const REAL  tol,
const INT  MaxIt,
const SHORT  StopType,
const SHORT  PrtLvl 
)

A preconditioned minimal residual (Minres) method for solving Au=b.

Parameters
APointer to dBLCmat: coefficient matrix
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to precond: structure of precondition
tolTolerance for stopping
MaxItMaximal number of iterations
StopTypeStopping criteria type
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
05/01/2012

Rewritten based on the original version by Xiaozhe Hu 05/24/2010 Modified by Chensong Zhang on 04/09/2013

Definition at line 475 of file KryPminres.c.

◆ fasp_solver_dcsr_pminres()

INT fasp_solver_dcsr_pminres ( dCSRmat A,
dvector b,
dvector u,
precond pc,
const REAL  tol,
const INT  MaxIt,
const SHORT  StopType,
const SHORT  PrtLvl 
)

A preconditioned minimal residual (Minres) method for solving Au=b.

Parameters
APointer to dCSRmat: coefficient matrix
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to precond: structure of precondition
tolTolerance for stopping
MaxItMaximal number of iterations
StopTypeStopping criteria type
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
05/01/2012

Rewritten based on the original version by Shiquan Zhang 05/10/2010 Modified by Chensong Zhang on 04/09/2013

Definition at line 62 of file KryPminres.c.

◆ fasp_solver_dstr_pminres()

INT fasp_solver_dstr_pminres ( dSTRmat A,
dvector b,
dvector u,
precond pc,
const REAL  tol,
const INT  MaxIt,
const SHORT  StopType,
const SHORT  PrtLvl 
)

A preconditioned minimal residual (Minres) method for solving Au=b.

Parameters
APointer to dSTRmat: coefficient matrix
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to precond: structure of precondition
tolTolerance for stopping
MaxItMaximal number of iterations
StopTypeStopping criteria type
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
04/09/2013

Definition at line 885 of file KryPminres.c.

◆ fasp_solver_pminres()

INT fasp_solver_pminres ( mxv_matfree mf,
dvector b,
dvector u,
precond pc,
const REAL  tol,
const INT  MaxIt,
const SHORT  StopType,
const SHORT  PrtLvl 
)

A preconditioned minimal residual (Minres) method for solving Au=b.

Parameters
mfPointer to mxv_matfree: spmv operation
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to precond: structure of precondition
tolTolerance for stopping
MaxItMaximal number of iterations
StopTypeStopping criteria type
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Shiquan Zhang
Date
10/24/2010

Rewritten by Chensong Zhang on 05/01/2012

Definition at line 1296 of file KryPminres.c.