Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
pgcr.c File Reference

Krylov subspace methods – Preconditioned GCR. More...

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

Go to the source code of this file.

Functions

INT fasp_solver_dcsr_pgcr (dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, const SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 A preconditioned GCR method for solving Au=b. More...
 
INT fasp_solver_dcsr_pgcr1 (dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const INT MaxIt, const SHORT restart, const SHORT stop_type, const SHORT prtlvl)
 A preconditioned GCR method for solving Au=b. More...
 

Detailed Description

Krylov subspace methods – Preconditioned GCR.

Definition in file pgcr.c.

Function Documentation

INT fasp_solver_dcsr_pgcr ( dCSRmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const INT  MaxIt,
const SHORT  restart,
const SHORT  stop_type,
const SHORT  prtlvl 
)

A preconditioned GCR method for solving Au=b.

Parameters
APointer to the coefficient matrix
bPointer to the dvector of right hand side
xPointer to the dvector of dofs
pcPointer to the structure of precondition (precond)
tolTolerance for stopage
MaxItMaximal number of iterations
restartRestart number for GCR
stop_typeStopping type
prtlvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Zheng Li
Date
12/23/2014

Definition at line 37 of file pgcr.c.

INT fasp_solver_dcsr_pgcr1 ( dCSRmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const INT  MaxIt,
const SHORT  restart,
const SHORT  stop_type,
const SHORT  prtlvl 
)

A preconditioned GCR method for solving Au=b.

Parameters
APointer to the coefficient matrix
bPointer to the dvector of right hand side
xPointer to the dvector of dofs
pcPointer to the structure of precondition (precond)
tolTolerance for stopage
MaxItMaximal number of iterations
restartRestart number for GCR
stop_typeStopping type
prtlvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Lu Wang
Date
11/02/2014
Warning
Deprecated function. Remove it later!!! –Chensong

Definition at line 226 of file pgcr.c.