|
kusano |
7d535a |
|
|
kusano |
7d535a |
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
|
|
kusano |
7d535a |
<title>SuperLU: SRC/slu_ddefs.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_ddefs.hGo to the documentation of this file.
|
|
kusano |
7d535a |
00063 #ifndef __SUPERLU_dSP_DEFS
|
|
kusano |
7d535a |
00064 #define __SUPERLU_dSP_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
|
|
kusano |
7d535a |
00086
|
|
kusano |
7d535a |
00087
|
|
kusano |
7d535a |
00088 typedef struct {
|
|
kusano |
7d535a |
00089 int *xsup;
|
|
kusano |
7d535a |
00090 int *supno;
|
|
kusano |
7d535a |
00091 int *lsub;
|
|
kusano |
7d535a |
00092 int *xlsub;
|
|
kusano |
7d535a |
00093 double *lusup;
|
|
kusano |
7d535a |
00094 int *xlusup;
|
|
kusano |
7d535a |
00095 double *ucol;
|
|
kusano |
7d535a |
00096 int *usub;
|
|
kusano |
7d535a |
00097 int *xusub;
|
|
kusano |
7d535a |
00098 int nzlmax;
|
|
kusano |
7d535a |
00099 int nzumax;
|
|
kusano |
7d535a |
00100 int nzlumax;
|
|
kusano |
7d535a |
00101 int n;
|
|
kusano |
7d535a |
00102 LU_space_t MemModel;
|
|
kusano |
7d535a |
00103 int num_expansions;
|
|
kusano |
7d535a |
00104 ExpHeader *expanders;
|
|
kusano |
7d535a |
00105 LU_stack_t stack;
|
|
kusano |
7d535a |
00106 } GlobalLU_t;
|
|
kusano |
7d535a |
00107
|
|
kusano |
7d535a |
00108
|
|
kusano |
7d535a |
00109
|
|
kusano |
7d535a |
00110
|
|
kusano |
7d535a |
00111 #ifdef __cplusplus
|
|
kusano |
7d535a |
00112 extern "C" {
|
|
kusano |
7d535a |
00113 #endif
|
|
kusano |
7d535a |
00114
|
|
kusano |
7d535a |
00116 extern void
|
|
kusano |
7d535a |
00117 dgssv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
|
|
kusano |
7d535a |
00118 SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00119 extern void
|
|
kusano |
7d535a |
00120 dgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
|
|
kusano |
7d535a |
00121 char *, double *, double *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00122 void *, int, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00123 double *, double *, double *, double *,
|
|
kusano |
7d535a |
00124 mem_usage_t *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00125
|
|
kusano |
7d535a |
00126 extern void
|
|
kusano |
7d535a |
00127 dgsisv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
|
|
kusano |
7d535a |
00128 SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00129 extern void
|
|
kusano |
7d535a |
00130 dgsisx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
|
|
kusano |
7d535a |
00131 char *, double *, double *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00132 void *, int, SuperMatrix *, SuperMatrix *, double *, double *,
|
|
kusano |
7d535a |
00133 mem_usage_t *, SuperLUStat_t *, int *);
|
|
kusano |
7d535a |
00134
|
|
kusano |
7d535a |
00135
|
|
kusano |
7d535a |
00137 extern void
|
|
kusano |
7d535a |
00138 dCreate_CompCol_Matrix(SuperMatrix *, int, int, int, double *,
|
|
kusano |
7d535a |
00139 int *, int *, Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00140 extern void
|
|
kusano |
7d535a |
00141 dCreate_CompRow_Matrix(SuperMatrix *, int, int, int, double *,
|
|
kusano |
7d535a |
00142 int *, int *, Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00143 extern void
|
|
kusano |
7d535a |
00144 dCopy_CompCol_Matrix(SuperMatrix *, SuperMatrix *);
|
|
kusano |
7d535a |
00145 extern void
|
|
kusano |
7d535a |
00146 dCreate_Dense_Matrix(SuperMatrix *, int, int, double *, int,
|
|
kusano |
7d535a |
00147 Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00148 extern void
|
|
kusano |
7d535a |
00149 dCreate_SuperNode_Matrix(SuperMatrix *, int, int, int, double *,
|
|
kusano |
7d535a |
00150 int *, int *, int *, int *, int *,
|
|
kusano |
7d535a |
00151 Stype_t, Dtype_t, Mtype_t);
|
|
kusano |
7d535a |
00152 extern void
|
|
kusano |
7d535a |
00153 dCopy_Dense_Matrix(int, int, double *, int, double *, int);
|
|
kusano |
7d535a |
00154
|
|
kusano |
7d535a |
00155 extern void countnz (const int, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00156 extern void ilu_countnz (const int, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00157 extern void fixupL (const int, const int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00158
|
|
kusano |
7d535a |
00159 extern void dallocateA (int, int, double **, int **, int **);
|
|
kusano |
7d535a |
00160 extern void dgstrf (superlu_options_t*, SuperMatrix*,
|
|
kusano |
7d535a |
00161 int, int, int*, void *, int, int *, int *,
|
|
kusano |
7d535a |
00162 SuperMatrix *, SuperMatrix *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00163 extern int dsnode_dfs (const int, const int, const int *, const int *,
|
|
kusano |
7d535a |
00164 const int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00165 extern int dsnode_bmod (const int, const int, const int, double *,
|
|
kusano |
7d535a |
00166 double *, GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00167 extern void dpanel_dfs (const int, const int, const int, SuperMatrix *,
|
|
kusano |
7d535a |
00168 int *, int *, double *, int *, int *, int *,
|
|
kusano |
7d535a |
00169 int *, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00170 extern void dpanel_bmod (const int, const int, const int, const int,
|
|
kusano |
7d535a |
00171 double *, double *, int *, int *,
|
|
kusano |
7d535a |
00172 GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00173 extern int dcolumn_dfs (const int, const int, int *, int *, int *, int *,
|
|
kusano |
7d535a |
00174 int *, int *, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00175 extern int dcolumn_bmod (const int, const int, double *,
|
|
kusano |
7d535a |
00176 double *, int *, int *, int,
|
|
kusano |
7d535a |
00177 GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00178 extern int dcopy_to_ucol (int, int, int *, int *, int *,
|
|
kusano |
7d535a |
00179 double *, GlobalLU_t *);
|
|
kusano |
7d535a |
00180 extern int dpivotL (const int, const double, int *, int *,
|
|
kusano |
7d535a |
00181 int *, int *, int *, GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00182 extern void dpruneL (const int, const int *, const int, const int,
|
|
kusano |
7d535a |
00183 const int *, const int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00184 extern void dreadmt (int *, int *, int *, double **, int **, int **);
|
|
kusano |
7d535a |
00185 extern void dGenXtrue (int, int, double *, int);
|
|
kusano |
7d535a |
00186 extern void dFillRHS (trans_t, int, double *, int, SuperMatrix *,
|
|
kusano |
7d535a |
00187 SuperMatrix *);
|
|
kusano |
7d535a |
00188 extern void dgstrs (trans_t, SuperMatrix *, SuperMatrix *, int *, int *,
|
|
kusano |
7d535a |
00189 SuperMatrix *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00190
|
|
kusano |
7d535a |
00191 extern void dgsitrf (superlu_options_t*, SuperMatrix*, int, int, int*,
|
|
kusano |
7d535a |
00192 void *, int, int *, int *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00193 SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00194 extern int dldperm(int, int, int, int [], int [], double [],
|
|
kusano |
7d535a |
00195 int [], double [], double []);
|
|
kusano |
7d535a |
00196 extern int ilu_dsnode_dfs (const int, const int, const int *, const int *,
|
|
kusano |
7d535a |
00197 const int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00198 extern void ilu_dpanel_dfs (const int, const int, const int, SuperMatrix *,
|
|
kusano |
7d535a |
00199 int *, int *, double *, double *, int *, int *,
|
|
kusano |
7d535a |
00200 int *, int *, int *, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00201 extern int ilu_dcolumn_dfs (const int, const int, int *, int *, int *,
|
|
kusano |
7d535a |
00202 int *, int *, int *, int *, int *,
|
|
kusano |
7d535a |
00203 GlobalLU_t *);
|
|
kusano |
7d535a |
00204 extern int ilu_dcopy_to_ucol (int, int, int *, int *, int *,
|
|
kusano |
7d535a |
00205 double *, int, milu_t, double, int,
|
|
kusano |
7d535a |
00206 double *, int *, GlobalLU_t *, double *);
|
|
kusano |
7d535a |
00207 extern int ilu_dpivotL (const int, const double, int *, int *, int, int *,
|
|
kusano |
7d535a |
00208 int *, int *, int *, double, milu_t,
|
|
kusano |
7d535a |
00209 double, GlobalLU_t *, SuperLUStat_t*);
|
|
kusano |
7d535a |
00210 extern int ilu_ddrop_row (superlu_options_t *, int, int, double,
|
|
kusano |
7d535a |
00211 int, int *, double *, GlobalLU_t *,
|
|
kusano |
7d535a |
00212 double *, double *, int);
|
|
kusano |
7d535a |
00213
|
|
kusano |
7d535a |
00214
|
|
kusano |
7d535a |
00217 extern void dgsequ (SuperMatrix *, double *, double *, double *,
|
|
kusano |
7d535a |
00218 double *, double *, int *);
|
|
kusano |
7d535a |
00219 extern void dlaqgs (SuperMatrix *, double *, double *, double,
|
|
kusano |
7d535a |
00220 double, double, char *);
|
|
kusano |
7d535a |
00221 extern void dgscon (char *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00222 double, double *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00223 extern double dPivotGrowth(int, SuperMatrix *, int *,
|
|
kusano |
7d535a |
00224 SuperMatrix *, SuperMatrix *);
|
|
kusano |
7d535a |
00225 extern void dgsrfs (trans_t, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00226 SuperMatrix *, int *, int *, char *, double *,
|
|
kusano |
7d535a |
00227 double *, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00228 double *, double *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00229
|
|
kusano |
7d535a |
00230 extern int sp_dtrsv (char *, char *, char *, SuperMatrix *,
|
|
kusano |
7d535a |
00231 SuperMatrix *, double *, SuperLUStat_t*, int *);
|
|
kusano |
7d535a |
00232 extern int sp_dgemv (char *, double, SuperMatrix *, double *,
|
|
kusano |
7d535a |
00233 int, double, double *, int);
|
|
kusano |
7d535a |
00234
|
|
kusano |
7d535a |
00235 extern int sp_dgemm (char *, char *, int, int, int, double,
|
|
kusano |
7d535a |
00236 SuperMatrix *, double *, int, double,
|
|
kusano |
7d535a |
00237 double *, int);
|
|
kusano |
7d535a |
00238 extern double dlamch_(char *);
|
|
kusano |
7d535a |
00239
|
|
kusano |
7d535a |
00240
|
|
kusano |
7d535a |
00242 extern int dLUMemInit (fact_t, void *, int, int, int, int, int,
|
|
kusano |
7d535a |
00243 double, SuperMatrix *, SuperMatrix *,
|
|
kusano |
7d535a |
00244 GlobalLU_t *, int **, double **);
|
|
kusano |
7d535a |
00245 extern void dSetRWork (int, int, double *, double **, double **);
|
|
kusano |
7d535a |
00246 extern void dLUWorkFree (int *, double *, GlobalLU_t *);
|
|
kusano |
7d535a |
00247 extern int dLUMemXpand (int, int, MemType, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00248
|
|
kusano |
7d535a |
00249 extern double *doubleMalloc(int);
|
|
kusano |
7d535a |
00250 extern double *doubleCalloc(int);
|
|
kusano |
7d535a |
00251 extern int dmemory_usage(const int, const int, const int, const int);
|
|
kusano |
7d535a |
00252 extern int dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
|
|
kusano |
7d535a |
00253 extern int ilu_dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
|
|
kusano |
7d535a |
00254
|
|
kusano |
7d535a |
00256 extern void dreadhb(int *, int *, int *, double **, int **, int **);
|
|
kusano |
7d535a |
00257 extern void dreadrb(int *, int *, int *, double **, int **, int **);
|
|
kusano |
7d535a |
00258 extern void dreadtriple(int *, int *, int *, double **, int **, int **);
|
|
kusano |
7d535a |
00259 extern void dCompRow_to_CompCol(int, int, int, double*, int*, int*,
|
|
kusano |
7d535a |
00260 double **, int **, int **);
|
|
kusano |
7d535a |
00261 extern void dfill (double *, int, double);
|
|
kusano |
7d535a |
00262 extern void dinf_norm_error (int, SuperMatrix *, double *);
|
|
kusano |
7d535a |
00263 extern void PrintPerf (SuperMatrix *, SuperMatrix *, mem_usage_t *,
|
|
kusano |
7d535a |
00264 double, double, double *, double *, char *);
|
|
kusano |
7d535a |
00265 extern double dqselect(int, double *, int);
|
|
kusano |
7d535a |
00266
|
|
kusano |
7d535a |
00267
|
|
kusano |
7d535a |
00269 extern void dPrint_CompCol_Matrix(char *, SuperMatrix *);
|
|
kusano |
7d535a |
00270 extern void dPrint_SuperNode_Matrix(char *, SuperMatrix *);
|
|
kusano |
7d535a |
00271 extern void dPrint_Dense_Matrix(char *, SuperMatrix *);
|
|
kusano |
7d535a |
00272 extern void dprint_lu_col(char *, int, int, int *, GlobalLU_t *);
|
|
kusano |
7d535a |
00273 extern int print_double_vec(char *, int, double *);
|
|
kusano |
7d535a |
00274 extern void check_tempv(int, double *);
|
|
kusano |
7d535a |
00275
|
|
kusano |
7d535a |
00276 #ifdef __cplusplus
|
|
kusano |
7d535a |
00277 }
|
|
kusano |
7d535a |
00278 #endif
|
|
kusano |
7d535a |
00279
|
|
kusano |
7d535a |
00280 #endif
|
|
kusano |
7d535a |
00281
|
|
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 |
|