#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "itlin.h"
Go to the source code of this file.
Defines | |
#define | MAXITER_DEFAULT 100 |
Functions | |
double | gmres_norm2 (int n, double *v) |
int | gmres_qrfact (int n, int lda, double *a, double *q, int ijob) |
void | gmres_qrsolv (int n, int lda, double *a, double *q, double *b) |
void | gmres (int n, double *y, MATVEC *matvec, PRECON *preconr, PRECON *preconl, double *b, struct ITLIN_OPT *opt, struct ITLIN_INFO *info) |
Variables | |
struct ITLIN_IO * | itlin_ioctl |
void gmres | ( | int | n, | |
double * | y, | |||
MATVEC * | matvec, | |||
PRECON * | preconr, | |||
PRECON * | preconl, | |||
double * | b, | |||
struct ITLIN_OPT * | opt, | |||
struct ITLIN_INFO * | info | |||
) |
Definition at line 300 of file gmres.c.
References CheckEachIter, CheckOnRestart, ITLIN_DATA::codeid, DATA, ITLIN_OPT::datafile, ITLIN_OPT::datalevel, DATALEVEL, ERROR, ITLIN_OPT::errorfile, ITLIN_OPT::errorlevel, ERRORLEVEL, False, ITLIN_DATA::Final, FITER, FMISC, FRES, ITLIN_DATA::GMRES, gmres_norm2(), gmres_qrfact(), gmres_qrsolv(), i, ITLIN_OPT::i_max, ITLIN_DATA::Initial, ITLIN_DATA::Intermediate, ITLIN_INFO::iter, ITLIN_OPT::iterfile, itlin_dataout(), itlin_noprecon(), itlin_parcheck_and_print(), matvec(), ITLIN_OPT::maxiter, MAXITER_DEFAULT, ITLIN_OPT::miscfile, ITLIN_DATA::mode, MONITOR, ITLIN_OPT::monitorfile, ITLIN_OPT::monitorlevel, MONITORLEVEL, ITLIN_INFO::nomatvec, ITLIN_INFO::noprecl, ITLIN_INFO::noprecr, ITLIN_DATA::normdx, ITLIN_INFO::precision, preconr(), RCODE, ITLIN_DATA::res, ITLIN_OPT::resfile, ITLIN_DATA::residuum, ITLIN_DATA::Solution, ITLIN_DATA::t, ITLIN_DATA::tau, ITLIN_OPT::termcheck, ITLIN_OPT::tol, True, zibnum_fwalloc(), and zibnum_pfwalloc().
Referenced by gmres_wrapout().
double gmres_norm2 | ( | int | n, | |
double * | v | |||
) |
int gmres_qrfact | ( | int | n, | |
int | lda, | |||
double * | a, | |||
double * | q, | |||
int | ijob | |||
) |
Definition at line 502 of file gmres.c.
References i, and ITLIN_DATA::t.
Referenced by gmres().
void gmres_qrsolv | ( | int | n, | |
int | lda, | |||
double * | a, | |||
double * | q, | |||
double * | b | |||
) |
Definition at line 547 of file gmres.c.
References i, and ITLIN_DATA::t.
Referenced by gmres().
struct ITLIN_IO* itlin_ioctl |