SRC/slu_ddefs.h

Go to the documentation of this file.
00001 
00063 #ifndef __SUPERLU_dSP_DEFS /* allow multiple inclusions */
00064 #define __SUPERLU_dSP_DEFS
00065 
00066 /*
00067  * File name:           dsp_defs.h
00068  * Purpose:             Sparse matrix types and function prototypes
00069  * History:
00070  */
00071 
00072 #ifdef _CRAY
00073 #include <fortran.h>
00074 #include <string.h>
00075 #endif
00076 
00077 /* Define my integer type int_t */
00078 typedef int int_t; /* default */
00079 
00080 #include "slu_Cnames.h"
00081 #include "supermatrix.h"
00082 #include "slu_util.h"
00083 
00084 
00085 
00086 typedef struct {
00087     int     *xsup;    /* supernode and column mapping */
00088     int     *supno;   
00089     int     *lsub;    /* compressed L subscripts */
00090     int     *xlsub;
00091     double  *lusup;   /* L supernodes */
00092     int     *xlusup;
00093     double  *ucol;    /* U columns */
00094     int     *usub;
00095     int     *xusub;
00096     int     nzlmax;   /* current max size of lsub */
00097     int     nzumax;   /*    "    "    "      ucol */
00098     int     nzlumax;  /*    "    "    "     lusup */
00099     int     n;        /* number of columns in the matrix */
00100     LU_space_t MemModel; /* 0 - system malloc'd; 1 - user provided */
00101 } GlobalLU_t;
00102 
00103 
00104 /* -------- Prototypes -------- */
00105 
00106 #ifdef __cplusplus
00107 extern "C" {
00108 #endif
00109 
00111 extern void
00112 dgssv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
00113       SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
00114 extern void
00115 dgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
00116        char *, double *, double *, SuperMatrix *, SuperMatrix *,
00117        void *, int, SuperMatrix *, SuperMatrix *,
00118        double *, double *, double *, double *,
00119        mem_usage_t *, SuperLUStat_t *, int *);
00120 
00122 extern void
00123 dCreate_CompCol_Matrix(SuperMatrix *, int, int, int, double *,
00124                        int *, int *, Stype_t, Dtype_t, Mtype_t);
00125 extern void
00126 dCreate_CompRow_Matrix(SuperMatrix *, int, int, int, double *,
00127                        int *, int *, Stype_t, Dtype_t, Mtype_t);
00128 extern void
00129 dCopy_CompCol_Matrix(SuperMatrix *, SuperMatrix *);
00130 extern void
00131 dCreate_Dense_Matrix(SuperMatrix *, int, int, double *, int,
00132                      Stype_t, Dtype_t, Mtype_t);
00133 extern void
00134 dCreate_SuperNode_Matrix(SuperMatrix *, int, int, int, double *, 
00135                          int *, int *, int *, int *, int *,
00136                          Stype_t, Dtype_t, Mtype_t);
00137 extern void
00138 dCopy_Dense_Matrix(int, int, double *, int, double *, 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    dallocateA (int, int, double **, int **, int **);
00144 extern void    dgstrf (superlu_options_t*, SuperMatrix*, double, 
00145                        int, int, int*, void *, int, int *, int *, 
00146                        SuperMatrix *, SuperMatrix *, SuperLUStat_t*, int *);
00147 extern int     dsnode_dfs (const int, const int, const int *, const int *,
00148                              const int *, int *, int *, GlobalLU_t *);
00149 extern int     dsnode_bmod (const int, const int, const int, double *,
00150                               double *, GlobalLU_t *, SuperLUStat_t*);
00151 extern void    dpanel_dfs (const int, const int, const int, SuperMatrix *,
00152                            int *, int *, double *, int *, int *, int *,
00153                            int *, int *, int *, int *, GlobalLU_t *);
00154 extern void    dpanel_bmod (const int, const int, const int, const int,
00155                            double *, double *, int *, int *,
00156                            GlobalLU_t *, SuperLUStat_t*);
00157 extern int     dcolumn_dfs (const int, const int, int *, int *, int *, int *,
00158                            int *, int *, int *, int *, int *, GlobalLU_t *);
00159 extern int     dcolumn_bmod (const int, const int, double *,
00160                            double *, int *, int *, int,
00161                            GlobalLU_t *, SuperLUStat_t*);
00162 extern int     dcopy_to_ucol (int, int, int *, int *, int *,
00163                               double *, GlobalLU_t *);         
00164 extern int     dpivotL (const int, const double, int *, int *, 
00165                          int *, int *, int *, GlobalLU_t *, SuperLUStat_t*);
00166 extern void    dpruneL (const int, const int *, const int, const int,
00167                           const int *, const int *, int *, GlobalLU_t *);
00168 extern void    dreadmt (int *, int *, int *, double **, int **, int **);
00169 extern void    dGenXtrue (int, int, double *, int);
00170 extern void    dFillRHS (trans_t, int, double *, int, SuperMatrix *,
00171                           SuperMatrix *);
00172 extern void    dgstrs (trans_t, SuperMatrix *, SuperMatrix *, int *, int *,
00173                         SuperMatrix *, SuperLUStat_t*, int *);
00174 
00175 
00178 extern void    dgsequ (SuperMatrix *, double *, double *, double *,
00179                         double *, double *, int *);
00180 extern void    dlaqgs (SuperMatrix *, double *, double *, double,
00181                         double, double, char *);
00182 extern void    dgscon (char *, SuperMatrix *, SuperMatrix *, 
00183                          double, double *, SuperLUStat_t*, int *);
00184 extern double   dPivotGrowth(int, SuperMatrix *, int *, 
00185                             SuperMatrix *, SuperMatrix *);
00186 extern void    dgsrfs (trans_t, SuperMatrix *, SuperMatrix *,
00187                        SuperMatrix *, int *, int *, char *, double *, 
00188                        double *, SuperMatrix *, SuperMatrix *,
00189                        double *, double *, SuperLUStat_t*, int *);
00190 
00191 extern int     sp_dtrsv (char *, char *, char *, SuperMatrix *,
00192                         SuperMatrix *, double *, SuperLUStat_t*, int *);
00193 extern int     sp_dgemv (char *, double, SuperMatrix *, double *,
00194                         int, double, double *, int);
00195 
00196 extern int     sp_dgemm (char *, char *, int, int, int, double,
00197                         SuperMatrix *, double *, int, double, 
00198                         double *, int);
00199 
00201 extern int     dLUMemInit (fact_t, void *, int, int, int, int, int,
00202                              SuperMatrix *, SuperMatrix *,
00203                              GlobalLU_t *, int **, double **);
00204 extern void    dSetRWork (int, int, double *, double **, double **);
00205 extern void    dLUWorkFree (int *, double *, GlobalLU_t *);
00206 extern int     dLUMemXpand (int, int, MemType, int *, GlobalLU_t *);
00207 
00208 extern double  *doubleMalloc(int);
00209 extern double  *doubleCalloc(int);
00210 extern int     dmemory_usage(const int, const int, const int, const int);
00211 extern int     dQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
00212 
00214 extern void    dreadhb(int *, int *, int *, double **, int **, int **);
00215 extern void    dCompRow_to_CompCol(int, int, int, double*, int*, int*,
00216                                    double **, int **, int **);
00217 extern void    dfill (double *, int, double);
00218 extern void    dinf_norm_error (int, SuperMatrix *, double *);
00219 extern void    PrintPerf (SuperMatrix *, SuperMatrix *, mem_usage_t *,
00220                          double, double, double *, double *, char *);
00221 
00223 extern void    dPrint_CompCol_Matrix(char *, SuperMatrix *);
00224 extern void    dPrint_SuperNode_Matrix(char *, SuperMatrix *);
00225 extern void    dPrint_Dense_Matrix(char *, SuperMatrix *);
00226 extern void    print_lu_col(char *, int, int, int *, GlobalLU_t *);
00227 extern void    check_tempv(int, double *);
00228 
00229 #ifdef __cplusplus
00230   }
00231 #endif
00232 
00233 #endif /* __SUPERLU_dSP_DEFS */
00234 

Generated on Fri Aug 1 22:40:39 2008 for SuperLU by  doxygen 1.4.6