utils.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "itlin.h"

Include dependency graph for utils.c:

Go to the source code of this file.

Defines

#define TOLMIN   1.0e-15
#define TOLMAX   1.0e-1

Functions

int zibnum_fwalloc (int size, double **ptr, char vname[])
int zibnum_iwalloc (int size, int **ptr, char vname[])
int zibnum_pfwalloc (int size, double ***ptr, char vname[])
double zibnum_scaled_norm2 (int n, double *v, double *scale)
double zibnum_scaled_sprod (int n, double *v1, double *v2, double *scale)
double zibnum_norm2 (int n, double *v)
void zibnum_scale (int n, double *v1, double *v2, double *scale)
void zibnum_descale (int n, double *v1, double *v2, double *scale)
void itlin_noprecon (int n, double *x, double *z)
void itlin_dataout (int k, int n, double *x, struct ITLIN_DATA *data)
int itlin_parcheck_and_print (int n, MATVEC *matvec, struct ITLIN_OPT *opt, int itlin_code)

Variables

struct ITLIN_IOitlin_ioctl = NULL


Define Documentation

#define TOLMAX   1.0e-1

#define TOLMIN   1.0e-15


Function Documentation

void itlin_dataout ( int  k,
int  n,
double *  x,
struct ITLIN_DATA data 
)

Definition at line 286 of file utils.c.

References ITLIN_DATA::codeid, DATA, DATALEVEL, FITER, FMISC, FRES, i, ITLIN_DATA::mode, ITLIN_DATA::normdx, ITLIN_DATA::res, ITLIN_DATA::residuum, ITLIN_DATA::t, and ITLIN_DATA::tau.

Referenced by gmres().

Here is the caller graph for this function:

void itlin_noprecon ( int  n,
double *  x,
double *  z 
)

Definition at line 281 of file utils.c.

Referenced by gmres().

Here is the caller graph for this function:

int itlin_parcheck_and_print ( int  n,
MATVEC matvec,
struct ITLIN_OPT opt,
int  itlin_code 
)

Definition at line 329 of file utils.c.

References Absolute, ITLIN_OPT::convcheck, ERROR, ERRORLEVEL, i, ITLIN_OPT::i_max, ITLIN_OPT::maxiter, MIN, MONITOR, MONITORLEVEL, Relative, ITLIN_OPT::rho, ITLIN_OPT::scale, SMALL, ITLIN_OPT::tol, TOLMAX, and TOLMIN.

Referenced by gmres().

Here is the caller graph for this function:

void zibnum_descale ( int  n,
double *  v1,
double *  v2,
double *  scale 
)

Definition at line 275 of file utils.c.

References i.

int zibnum_fwalloc ( int  size,
double **  ptr,
char  vname[] 
)

Definition at line 196 of file utils.c.

References ERROR, ERRORLEVEL, and i.

Referenced by gmres().

Here is the caller graph for this function:

int zibnum_iwalloc ( int  size,
int **  ptr,
char  vname[] 
)

Definition at line 213 of file utils.c.

References ERROR, ERRORLEVEL, and i.

double zibnum_norm2 ( int  n,
double *  v 
)

Definition at line 262 of file utils.c.

References i.

int zibnum_pfwalloc ( int  size,
double ***  ptr,
char  vname[] 
)

Definition at line 230 of file utils.c.

References ERROR, ERRORLEVEL, and i.

Referenced by gmres().

Here is the caller graph for this function:

void zibnum_scale ( int  n,
double *  v1,
double *  v2,
double *  scale 
)

Definition at line 269 of file utils.c.

References i.

double zibnum_scaled_norm2 ( int  n,
double *  v,
double *  scale 
)

Definition at line 247 of file utils.c.

References i.

double zibnum_scaled_sprod ( int  n,
double *  v1,
double *  v2,
double *  scale 
)

Definition at line 254 of file utils.c.

References i.


Variable Documentation

struct ITLIN_IO* itlin_ioctl = NULL

Definition at line 194 of file utils.c.


Generated on Thu May 27 11:53:19 2010 for VERB_CODE_2.0 by  doxygen 1.5.9