00001
00002
00003 #ifndef PCG_C99_H_DEF
00004 #define PCG_C99_H_DEF
00005
00006 extern int spcg(int n, int maxit, float tol,
00007 void (*amult)(int n, float *x, float *y, void **data),
00008 void (*msolve)(int n, float *x, float *y, void **data),
00009 float *b, float *x, float *rnorm, void **adata, void **mdata);
00010 extern int dpcg(int n, int maxit, double tol,
00011 void (*amult)(int n, double *x, double *y, void **data),
00012 void (*msolve)(int n, double *x, double *y, void **data),
00013 double *b, double *x, double *rnorm, void **adata, void **mdata);
00014 extern int cpcg(int n, int maxit, float tol,
00015 void (*amult)(int n, _Complex float *x, _Complex float *y, void **data),
00016 void (*msolve)(int n, _Complex float *x, _Complex float *y, void **data),
00017 _Complex float *b, _Complex float *x, float *rnorm,
00018 void **adata, void **mdata);
00019 extern int zpcg(int n, int maxit, double tol,
00020 void (*amult)(int n, _Complex double *x, _Complex double *y, void **data),
00021 void (*msolve)(int n, _Complex double *x, _Complex double *y, void **data),
00022 _Complex double *b, _Complex double *x, double *rnorm,
00023 void **adata, void **mdata);
00024
00025 #endif