|
kusano |
7d535a |
|
|
kusano |
7d535a |
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
|
|
kusano |
7d535a |
<title>SuperLU: SRC/slu_cdefs.h Source File</title>
|
|
kusano |
7d535a |
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
kusano |
7d535a |
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Main Page
|
|
kusano |
7d535a |
Data Structures
|
|
kusano |
7d535a |
Files
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SRC/slu_cdefs.hGo to the documentation of this file.
|
|
kusano |
7d535a |
00063 #ifndef __SUPERLU_cSP_DEFS
|
|
kusano |
7d535a |
00064 #define __SUPERLU_cSP_DEFS
|
|
kusano |
7d535a |
00065
|
|
kusano |
7d535a |
00066
|
|
kusano |
7d535a |
00067
|
|
kusano |
7d535a |
00068
|
|
kusano |
7d535a |
00069
|
|
kusano |
7d535a |
00070
|
|
kusano |
7d535a |
00071
|
|
kusano |
7d535a |
00072 #ifdef _CRAY
|
|
kusano |
7d535a |
00073 #include <fortran.h>
|
|
kusano |
7d535a |
00074 #include <string.h>
|
|
kusano |
7d535a |
00075 #endif
|
|
kusano |
7d535a |
00076
|
|
kusano |
7d535a |
00077
|
|
kusano |
7d535a |
00078 typedef int int_t;
|
|
kusano |
7d535a |
00079
|
|
kusano |
7d535a |
00080 #include <math.h>
|
|
kusano |
7d535a |
00081 #include <limits.h>
|
|
kusano |
7d535a |
00082 #include "slu_Cnames.h"
|
|
kusano |
7d535a |
00083 #include "supermatrix.h"
|
|
kusano |
7d535a |
00084 #include "slu_util.h"
|
|
kusano |
7d535a |
00085 #include "slu_scomplex.h"
|
|
kusano |
7d535a |
00086
|
|
kusano |
7d535a |
00087
|
|
kusano |
7d535a |
00088
|
|
kusano |
7d535a |
00089 typedef struct {
|
|
kusano |
7d535a |
00090 int *xsup;
|
|
kusano |
7d535a |
00091 int *supno;
|
|
kusano |
7d535a |
00092 int *lsub;
|
|
kusano |
7d535a |
00093 int *xlsub;
|
|
kusano |
7d535a |
00094 complex *lusup;
|
|
kusano |
7d535a |
00095 int *xlusup;
|
|
kusano |
7d535a |
00096 complex *ucol;
|
|
kusano |
7d535a |
00097 int *usub;
|
|
kusano |
7d535a |
00098 int *xusub;
|
|
kusano |
7d535a |
00099 int nzlmax;
|
|
kusano |
7d535a |
00100 int nzumax;
|
|
kusano |
7d535a |
00101 int nzlumax;
|
|
kusano |
7d535a |
00102 int n;
|
|
kusano |
7d535a |
00103 LU_space_t MemModel;
|
|
kusano |
7d535a |
00104 int num_expansions;
|
|
kusano |
7d535a |
00105 ExpHeader *expanders;
|
|
kusano |
7d535a |
00106 LU_stack_t stack;
|
|
kusano |
7d535a |
00107 } GlobalLU_t;
|
|
kusano |
7d535a |
00108
|
|
kusano |
7d535a |
00109
|
|
kusano |
7d535a |
00110
|
|
kusano |
7d535a |
00111
|
|
kusano |
7d535a |
00112 #ifdef __cplusplus
|
|
kusano |
7d535a |
00113 extern "C" {
|
|
kusano |
7d535a |
00114 #endif
|
|
kusano |
7d535a |
00115
|
|
kusano |
7d535a |
00117 extern void
|
|
kusano |
7d535a |
00118 cgssv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
|
|
kusano |
7d535a |
00119 SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00120 extern void
|
|
kusano |
7d535a |
00121 cgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
|
|
kusano |
7d535a |
00122 char *, float *, float *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00123 void *, int, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00124 float *, float *, float *, float *,
|
|
kusano |
7d535a |
00125 mem_usage_t *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00126
|
|
kusano |
7d535a |
00127 extern void
|
|
kusano |
7d535a |
00128 cgsisv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
|
|
kusano |
7d535a |
00129 SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00130 extern void
|
|
kusano |
7d535a |
00131 cgsisx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
|
|
kusano |
7d535a |
00132 char *, float *, float *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00133 void *, int, SuperMatrix *, SuperMatrix *, float *, float *,
|
|
kusano |
7d535a |
00134 mem_usage_t *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00135
|
|
kusano |
7d535a |
00136
|
|
kusano |
7d535a |
00138 extern void
|
|
kusano |
7d535a |
00139 cCreate_CompCol_Matrix(SuperMatrix *, int, int, int, complex *,
|
|
kusano |
7d535a |
00140 int *, int *, Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00141 extern void
|
|
kusano |
7d535a |
00142 cCreate_CompRow_Matrix(SuperMatrix *, int, int, int, complex *,
|
|
kusano |
7d535a |
00143 int *, int *, Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00144 extern void
|
|
kusano |
7d535a |
00145 cCopy_CompCol_Matrix(SuperMatrix *, SuperMatrix *);
|
|
kusano |
7d535a |
00146 extern void
|
|
kusano |
7d535a |
00147 cCreate_Dense_Matrix(SuperMatrix *, int, int, complex *, int,
|
|
kusano |
7d535a |
00148 Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00149 extern void
|
|
kusano |
7d535a |
00150 cCreate_SuperNode_Matrix(SuperMatrix *, int, int, int, complex *,
|
|
kusano |
7d535a |
00151 int *, int *, int *, int *, int *,
|
|
kusano |
7d535a |
00152 Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00153 extern void
|
|
kusano |
7d535a |
00154 cCopy_Dense_Matrix(int, int, complex *, int, complex *, int);
|
|
kusano |
7d535a |
00155
|
|
kusano |
7d535a |
00156 extern void countnz (const int, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00157 extern void ilu_countnz (const int, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00158 extern void fixupL (const int, const int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00159
|
|
kusano |
7d535a |
00160 extern void callocateA (int, int, complex **, int **, int **);
|
|
kusano |
7d535a |
00161 extern void cgstrf (superlu_options_t*, SuperMatrix*,
|
|
kusano |
7d535a |
00162 int, int, int*, void *, int, int *, int *,
|
|
kusano |
7d535a |
00163 SuperMatrix *, SuperMatrix *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00164 extern int csnode_dfs (const int, const int, const int *, const int *,
|
|
kusano |
7d535a |
00165 const int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00166 extern int csnode_bmod (const int, const int, const int, complex *,
|
|
kusano |
7d535a |
00167 complex *, GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00168 extern void cpanel_dfs (const int, const int, const int, SuperMatrix *,
|
|
kusano |
7d535a |
00169 int *, int *, complex *, int *, int *, int *,
|
|
kusano |
7d535a |
00170 int *, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00171 extern void cpanel_bmod (const int, const int, const int, const int,
|
|
kusano |
7d535a |
00172 complex *, complex *, int *, int *,
|
|
kusano |
7d535a |
00173 GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00174 extern int ccolumn_dfs (const int, const int, int *, int *, int *, int *,
|
|
kusano |
7d535a |
00175 int *, int *, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00176 extern int ccolumn_bmod (const int, const int, complex *,
|
|
kusano |
7d535a |
00177 complex *, int *, int *, int,
|
|
kusano |
7d535a |
00178 GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00179 extern int ccopy_to_ucol (int, int, int *, int *, int *,
|
|
kusano |
7d535a |
00180 complex *, GlobalLU_t *);
|
|
kusano |
7d535a |
00181 extern int cpivotL (const int, const double, int *, int *,
|
|
kusano |
7d535a |
00182 int *, int *, int *, GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00183 extern void cpruneL (const int, const int *, const int, const int,
|
|
kusano |
7d535a |
00184 const int *, const int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00185 extern void creadmt (int *, int *, int *, complex **, int **, int **);
|
|
kusano |
7d535a |
00186 extern void cGenXtrue (int, int, complex *, int);
|
|
kusano |
7d535a |
00187 extern void cFillRHS (trans_t, int, complex *, int, SuperMatrix *,
|
|
kusano |
7d535a |
00188 SuperMatrix *);
|
|
kusano |
7d535a |
00189 extern void cgstrs (trans_t, SuperMatrix *, SuperMatrix *, int *, int *,
|
|
kusano |
7d535a |
00190 SuperMatrix *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00191
|
|
kusano |
7d535a |
00192 extern void cgsitrf (superlu_options_t*, SuperMatrix*, int, int, int*,
|
|
kusano |
7d535a |
00193 void *, int, int *, int *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00194 SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00195 extern int cldperm(int, int, int, int [], int [], complex [],
|
|
kusano |
7d535a |
00196 int [], float [], float []);
|
|
kusano |
7d535a |
00197 extern int ilu_csnode_dfs (const int, const int, const int *, const int *,
|
|
kusano |
7d535a |
00198 const int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00199 extern void ilu_cpanel_dfs (const int, const int, const int, SuperMatrix *,
|
|
kusano |
7d535a |
00200 int *, int *, complex *, float *, int *, int *,
|
|
kusano |
7d535a |
00201 int *, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00202 extern int ilu_ccolumn_dfs (const int, const int, int *, int *, int *,
|
|
kusano |
7d535a |
00203 int *, int *, int *, int *, int *,
|
|
kusano |
7d535a |
00204 GlobalLU_t *);
|
|
kusano |
7d535a |
00205 extern int ilu_ccopy_to_ucol (int, int, int *, int *, int *,
|
|
kusano |
7d535a |
00206 complex *, int, milu_t, double, int,
|
|
kusano |
7d535a |
00207 complex *, int *, GlobalLU_t *, float *);
|
|
kusano |
7d535a |
00208 extern int ilu_cpivotL (const int, const double, int *, int *, int, int *,
|
|
kusano |
7d535a |
00209 int *, int *, int *, double, milu_t,
|
|
kusano |
7d535a |
00210 complex, GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00211 extern int ilu_cdrop_row (superlu_options_t *, int, int, double,
|
|
kusano |
7d535a |
00212 int, int *, double *, GlobalLU_t *,
|
|
kusano |
7d535a |
00213 float *, float *, int);
|
|
kusano |
7d535a |
00214
|
|
kusano |
7d535a |
00215
|
|
kusano |
7d535a |
00218 extern void cgsequ (SuperMatrix *, float *, float *, float *,
|
|
kusano |
7d535a |
00219 float *, float *, int *);
|
|
kusano |
7d535a |
00220 extern void claqgs (SuperMatrix *, float *, float *, float,
|
|
kusano |
7d535a |
00221 float, float, char *);
|
|
kusano |
7d535a |
00222 extern void cgscon (char *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00223 float, float *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00224 extern float cPivotGrowth(int, SuperMatrix *, int *,
|
|
kusano |
7d535a |
00225 SuperMatrix *, SuperMatrix *);
|
|
kusano |
7d535a |
00226 extern void cgsrfs (trans_t, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00227 SuperMatrix *, int *, int *, char *, float *,
|
|
kusano |
7d535a |
00228 float *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00229 float *, float *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00230
|
|
kusano |
7d535a |
00231 extern int sp_ctrsv (char *, char *, char *, SuperMatrix *,
|
|
kusano |
7d535a |
00232 SuperMatrix *, complex *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00233 extern int sp_cgemv (char *, complex, SuperMatrix *, complex *,
|
|
kusano |
7d535a |
00234 int, complex, complex *, int);
|
|
kusano |
7d535a |
00235
|
|
kusano |
7d535a |
00236 extern int sp_cgemm (char *, char *, int, int, int, complex,
|
|
kusano |
7d535a |
00237 SuperMatrix *, complex *, int, complex,
|
|
kusano |
7d535a |
00238 complex *, int);
|
|
kusano |
7d535a |
00239 extern float slamch_(char *);
|
|
kusano |
7d535a |
00240
|
|
kusano |
7d535a |
00241
|
|
kusano |
7d535a |
00243 extern int cLUMemInit (fact_t, void *, int, int, int, int, int,
|
|
kusano |
7d535a |
00244 float, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00245 GlobalLU_t *, int **, complex **);
|
|
kusano |
7d535a |
00246 extern void cSetRWork (int, int, complex *, complex **, complex **);
|
|
kusano |
7d535a |
00247 extern void cLUWorkFree (int *, complex *, GlobalLU_t *);
|
|
kusano |
7d535a |
00248 extern int cLUMemXpand (int, int, MemType, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00249
|
|
kusano |
7d535a |
00250 extern complex *complexMalloc(int);
|
|
kusano |
7d535a |
00251 extern complex *complexCalloc(int);
|
|
kusano |
7d535a |
00252 extern float *floatMalloc(int);
|
|
kusano |
7d535a |
00253 extern float *floatCalloc(int);
|
|
kusano |
7d535a |
00254 extern int cmemory_usage(const int, const int, const int, const int);
|
|
kusano |
7d535a |
00255 extern int cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
|
|
kusano |
7d535a |
00256 extern int ilu_cQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
|
|
kusano |
7d535a |
00257
|
|
kusano |
7d535a |
00259 extern void creadhb(int *, int *, int *, complex **, int **, int **);
|
|
kusano |
7d535a |
00260 extern void creadrb(int *, int *, int *, complex **, int **, int **);
|
|
kusano |
7d535a |
00261 extern void creadtriple(int *, int *, int *, complex **, int **, int **);
|
|
kusano |
7d535a |
00262 extern void cCompRow_to_CompCol(int, int, int, complex*, int*, int*,
|
|
kusano |
7d535a |
00263 complex **, int **, int **);
|
|
kusano |
7d535a |
00264 extern void cfill (complex *, int, complex);
|
|
kusano |
7d535a |
00265 extern void cinf_norm_error (int, SuperMatrix *, complex *);
|
|
kusano |
7d535a |
00266 extern void PrintPerf (SuperMatrix *, SuperMatrix *, mem_usage_t *,
|
|
kusano |
7d535a |
00267 complex, complex, complex *, complex *, char *);
|
|
kusano |
7d535a |
00268 extern float sqselect(int, float *, int);
|
|
kusano |
7d535a |
00269
|
|
kusano |
7d535a |
00270
|
|
kusano |
7d535a |
00272 extern void cPrint_CompCol_Matrix(char *, SuperMatrix *);
|
|
kusano |
7d535a |
00273 extern void cPrint_SuperNode_Matrix(char *, SuperMatrix *);
|
|
kusano |
7d535a |
00274 extern void cPrint_Dense_Matrix(char *, SuperMatrix *);
|
|
kusano |
7d535a |
00275 extern void cprint_lu_col(char *, int, int, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00276 extern int print_double_vec(char *, int, double *);
|
|
kusano |
7d535a |
00277 extern void check_tempv(int, complex *);
|
|
kusano |
7d535a |
00278
|
|
kusano |
7d535a |
00279 #ifdef __cplusplus
|
|
kusano |
7d535a |
00280 }
|
|
kusano |
7d535a |
00281 #endif
|
|
kusano |
7d535a |
00282
|
|
kusano |
7d535a |
00283 #endif
|
|
kusano |
7d535a |
00284
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<address style="text-align: right;"><small>Generated on Mon Nov 22 10:23:47 2010 for SuperLU by </small></address>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
1.5.5
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|