Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
KrySPminres.c File Reference

Krylov subspace methods – Preconditioned MINRES with safety net. 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_spminres (const dCSRmat *A, const 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 with safety net. More...
 
INT fasp_solver_dblc_spminres (const dBLCmat *A, const 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 with safety net. More...
 
INT fasp_solver_dstr_spminres (const dSTRmat *A, const 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 with safety net. More...
 

Detailed Description

Krylov subspace methods – Preconditioned MINRES with safety net.

Note
This file contains Level-3 (Kry) functions. It requires: AuxArray.c, AuxMemory.c, AuxMessage.c, AuxVector.c, BlaArray.c, BlaSpmvBLC.c, BlaSpmvCSR.c, and BlaSpmvSTR.c
The ‘best’ iterative solution will be saved and used upon exit; See KryPminres.c for a version without safety net

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


Copyright (C) 2013–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 KrySPminres.c.

Function Documentation

◆ fasp_solver_dblc_spminres()

INT fasp_solver_dblc_spminres ( const dBLCmat A,
const 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 with safety net.

Parameters
APointer to dBLCmat: coefficient matrix
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to structure of precondition (precond)
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 511 of file KrySPminres.c.

◆ fasp_solver_dcsr_spminres()

INT fasp_solver_dcsr_spminres ( const dCSRmat A,
const 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 with safety net.

Parameters
APointer to dCSRmat: coefficient matrix
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to structure of precondition (precond)
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 60 of file KrySPminres.c.

◆ fasp_solver_dstr_spminres()

INT fasp_solver_dstr_spminres ( const dSTRmat A,
const 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 with safety net.

Parameters
APointer to dSTRmat: coefficient matrix
bPointer to dvector: right hand side
uPointer to dvector: unknowns
MaxItMaximal number of iterations
tolTolerance for stopping
pcPointer to structure of precondition (precond)
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 962 of file KrySPminres.c.