00001
00063 #ifndef __SUPERLU_sSP_DEFS
00064 #define __SUPERLU_sSP_DEFS
00065
00066
00067
00068
00069
00070
00071
00072 #ifdef _CRAY
00073 #include <fortran.h>
00074 #include <string.h>
00075 #endif
00076
00077
00078 typedef int int_t;
00079
00080 #include "slu_Cnames.h"
00081 #include "supermatrix.h"
00082 #include "slu_util.h"
00083
00084
00085
00086 typedef struct {
00087 int *xsup;
00088 int *supno;
00089 int *lsub;
00090 int *xlsub;
00091 float *lusup;
00092 int *xlusup;
00093 float *ucol;
00094 int *usub;
00095 int *xusub;
00096 int nzlmax;
00097 int nzumax;
00098 int nzlumax;
00099 int n;
00100 LU_space_t MemModel;
00101 } GlobalLU_t;
00102
00103
00104
00105
00106 #ifdef __cplusplus
00107 extern "C" {
00108 #endif
00109
00111 extern void
00112 sgssv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
00113 SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
00114 extern void
00115 sgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
00116 char *, float *, float *, SuperMatrix *, SuperMatrix *,
00117 void *, int, SuperMatrix *, SuperMatrix *,
00118 float *, float *, float *, float *,
00119 mem_usage_t *, SuperLUStat_t *, int *);
00120
00122 extern void
00123 sCreate_CompCol_Matrix(SuperMatrix *, int, int, int, float *,
00124 int *, int *, Stype_t, Dtype_t, Mtype_t);
00125 extern void
00126 sCreate_CompRow_Matrix(SuperMatrix *, int, int, int, float *,
00127 int *, int *, Stype_t, Dtype_t, Mtype_t);
00128 extern void
00129 sCopy_CompCol_Matrix(SuperMatrix *, SuperMatrix *);
00130 extern void
00131 sCreate_Dense_Matrix(SuperMatrix *, int, int, float *, int,
00132 Stype_t, Dtype_t, Mtype_t);
00133 extern void
00134 sCreate_SuperNode_Matrix(SuperMatrix *, int, int, int, float *,
00135 int *, int *, int *, int *, int *,
00136 Stype_t, Dtype_t, Mtype_t);
00137 extern void
00138 sCopy_Dense_Matrix(int, int, float *, int, float *, int);
00139
00140 extern void countnz (const int, int *, int *, int *, GlobalLU_t *);
00141 extern void fixupL (const int, const int *, GlobalLU_t *);
00142
00143 extern void sallocateA (int, int, float **, int **, int **);
00144 extern void sgstrf (superlu_options_t*, SuperMatrix*, float,
00145 int, int, int*, void *, int, int *, int *,
00146 SuperMatrix *, SuperMatrix *, SuperLUStat_t*, int *);
00147 extern int ssnode_dfs (const int, const int, const int *, const int *,
00148 const int *, int *, int *, GlobalLU_t *);
00149 extern int ssnode_bmod (const int, const int, const int, float *,
00150 float *, GlobalLU_t *, SuperLUStat_t*);
00151 extern void spanel_dfs (const int, const int, const int, SuperMatrix *,
00152 int *, int *, float *, int *, int *, int *,
00153 int *, int *, int *, int *, GlobalLU_t *);
00154 extern void spanel_bmod (const int, const int, const int, const int,
00155 float *, float *, int *, int *,
00156 GlobalLU_t *, SuperLUStat_t*);
00157 extern int scolumn_dfs (const int, const int, int *, int *, int *, int *,
00158 int *, int *, int *, int *, int *, GlobalLU_t *);
00159 extern int scolumn_bmod (const int, const int, float *,
00160 float *, int *, int *, int,
00161 GlobalLU_t *, SuperLUStat_t*);
00162 extern int scopy_to_ucol (int, int, int *, int *, int *,
00163 float *, GlobalLU_t *);
00164 extern int spivotL (const int, const float, int *, int *,
00165 int *, int *, int *, GlobalLU_t *, SuperLUStat_t*);
00166 extern void spruneL (const int, const int *, const int, const int,
00167 const int *, const int *, int *, GlobalLU_t *);
00168 extern void sreadmt (int *, int *, int *, float **, int **, int **);
00169 extern void sGenXtrue (int, int, float *, int);
00170 extern void sFillRHS (trans_t, int, float *, int, SuperMatrix *,
00171 SuperMatrix *);
00172 extern void sgstrs (trans_t, SuperMatrix *, SuperMatrix *, int *, int *,
00173 SuperMatrix *, SuperLUStat_t*, int *);
00174
00175
00178 extern void sgsequ (SuperMatrix *, float *, float *, float *,
00179 float *, float *, int *);
00180 extern void slaqgs (SuperMatrix *, float *, float *, float,
00181 float, float, char *);
00182 extern void sgscon (char *, SuperMatrix *, SuperMatrix *,
00183 float, float *, SuperLUStat_t*, int *);
00184 extern float sPivotGrowth(int, SuperMatrix *, int *,
00185 SuperMatrix *, SuperMatrix *);
00186 extern void sgsrfs (trans_t, SuperMatrix *, SuperMatrix *,
00187 SuperMatrix *, int *, int *, char *, float *,
00188 float *, SuperMatrix *, SuperMatrix *,
00189 float *, float *, SuperLUStat_t*, int *);
00190
00191 extern int sp_strsv (char *, char *, char *, SuperMatrix *,
00192 SuperMatrix *, float *, SuperLUStat_t*, int *);
00193 extern int sp_sgemv (char *, float, SuperMatrix *, float *,
00194 int, float, float *, int);
00195
00196 extern int sp_sgemm (char *, char *, int, int, int, float,
00197 SuperMatrix *, float *, int, float,
00198 float *, int);
00199
00201 extern int sLUMemInit (fact_t, void *, int, int, int, int, int,
00202 SuperMatrix *, SuperMatrix *,
00203 GlobalLU_t *, int **, float **);
00204 extern void sSetRWork (int, int, float *, float **, float **);
00205 extern void sLUWorkFree (int *, float *, GlobalLU_t *);
00206 extern int sLUMemXpand (int, int, MemType, int *, GlobalLU_t *);
00207
00208 extern float *floatMalloc(int);
00209 extern float *floatCalloc(int);
00210 extern int smemory_usage(const int, const int, const int, const int);
00211 extern int sQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
00212
00214 extern void sreadhb(int *, int *, int *, float **, int **, int **);
00215 extern void sCompRow_to_CompCol(int, int, int, float*, int*, int*,
00216 float **, int **, int **);
00217 extern void sfill (float *, int, float);
00218 extern void sinf_norm_error (int, SuperMatrix *, float *);
00219 extern void PrintPerf (SuperMatrix *, SuperMatrix *, mem_usage_t *,
00220 float, float, float *, float *, char *);
00221
00223 extern void sPrint_CompCol_Matrix(char *, SuperMatrix *);
00224 extern void sPrint_SuperNode_Matrix(char *, SuperMatrix *);
00225 extern void sPrint_Dense_Matrix(char *, SuperMatrix *);
00226 extern void print_lu_col(char *, int, int, int *, GlobalLU_t *);
00227 extern void check_tempv(int, float *);
00228
00229 #ifdef __cplusplus
00230 }
00231 #endif
00232
00233 #endif
00234