Blame thirdparty/superlu/SuperLU_4.1/DOC/html/slu__zdefs_8h-source.html

kusano 7d535a
kusano 7d535a
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
kusano 7d535a
<title>SuperLU: SRC/slu_zdefs.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_zdefs.h

    Go to the documentation of this file.
    00001 
    kusano 7d535a
    00063 #ifndef __SUPERLU_zSP_DEFS /* allow multiple inclusions */
    kusano 7d535a
    00064 #define __SUPERLU_zSP_DEFS
    kusano 7d535a
    00065 
    kusano 7d535a
    00066 /*
    kusano 7d535a
    00067  * File name:           zsp_defs.h
    kusano 7d535a
    00068  * Purpose:             Sparse matrix types and function prototypes
    kusano 7d535a
    00069  * History:
    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 /* Define my integer type int_t */
    kusano 7d535a
    00078 typedef int int_t; /* default */
    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_dcomplex.h"
    kusano 7d535a
    00086 
    kusano 7d535a
    00087 
    kusano 7d535a
    00088 
    kusano 7d535a
    00089 typedef struct {
    kusano 7d535a
    00090     int     *xsup;    /* supernode and column mapping */
    kusano 7d535a
    00091     int     *supno;   
    kusano 7d535a
    00092     int     *lsub;    /* compressed L subscripts */
    kusano 7d535a
    00093     int     *xlsub;
    kusano 7d535a
    00094     doublecomplex  *lusup;   /* L supernodes */
    kusano 7d535a
    00095     int     *xlusup;
    kusano 7d535a
    00096     doublecomplex  *ucol;    /* U columns */
    kusano 7d535a
    00097     int     *usub;
    kusano 7d535a
    00098     int     *xusub;
    kusano 7d535a
    00099     int     nzlmax;   /* current max size of lsub */
    kusano 7d535a
    00100     int     nzumax;   /*    "    "    "      ucol */
    kusano 7d535a
    00101     int     nzlumax;  /*    "    "    "     lusup */
    kusano 7d535a
    00102     int     n;        /* number of columns in the matrix */
    kusano 7d535a
    00103     LU_space_t MemModel; /* 0 - system malloc'd; 1 - user provided */
    kusano 7d535a
    00104     int     num_expansions;
    kusano 7d535a
    00105     ExpHeader *expanders; /* Array of pointers to 4 types of memory */
    kusano 7d535a
    00106     LU_stack_t stack;     /* use user supplied memory */
    kusano 7d535a
    00107 } GlobalLU_t;
    kusano 7d535a
    00108 
    kusano 7d535a
    00109 
    kusano 7d535a
    00110 /* -------- Prototypes -------- */
    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 zgssv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
    kusano 7d535a
    00119       SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
    kusano 7d535a
    00120 extern void
    kusano 7d535a
    00121 zgssvx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
    kusano 7d535a
    00122        char *, double *, double *, SuperMatrix *, SuperMatrix *,
    kusano 7d535a
    00123        void *, int, SuperMatrix *, SuperMatrix *,
    kusano 7d535a
    00124        double *, double *, double *, double *,
    kusano 7d535a
    00125        mem_usage_t *, SuperLUStat_t *, int *);
    kusano 7d535a
    00126     /* ILU */
    kusano 7d535a
    00127 extern void
    kusano 7d535a
    00128 zgsisv(superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *,
    kusano 7d535a
    00129       SuperMatrix *, SuperMatrix *, SuperLUStat_t *, int *);
    kusano 7d535a
    00130 extern void
    kusano 7d535a
    00131 zgsisx(superlu_options_t *, SuperMatrix *, int *, int *, int *,
    kusano 7d535a
    00132        char *, double *, double *, SuperMatrix *, SuperMatrix *,
    kusano 7d535a
    00133        void *, int, SuperMatrix *, SuperMatrix *, double *, double *,
    kusano 7d535a
    00134        mem_usage_t *, SuperLUStat_t *, int *);
    kusano 7d535a
    00135 
    kusano 7d535a
    00136 
    kusano 7d535a
    00138 extern void
    kusano 7d535a
    00139 zCreate_CompCol_Matrix(SuperMatrix *, int, int, int, doublecomplex *,
    kusano 7d535a
    00140                        int *, int *, Stype_t, Dtype_t, Mtype_t);
    kusano 7d535a
    00141 extern void
    kusano 7d535a
    00142 zCreate_CompRow_Matrix(SuperMatrix *, int, int, int, doublecomplex *,
    kusano 7d535a
    00143                        int *, int *, Stype_t, Dtype_t, Mtype_t);
    kusano 7d535a
    00144 extern void
    kusano 7d535a
    00145 zCopy_CompCol_Matrix(SuperMatrix *, SuperMatrix *);
    kusano 7d535a
    00146 extern void
    kusano 7d535a
    00147 zCreate_Dense_Matrix(SuperMatrix *, int, int, doublecomplex *, int,
    kusano 7d535a
    00148                      Stype_t, Dtype_t, Mtype_t);
    kusano 7d535a
    00149 extern void
    kusano 7d535a
    00150 zCreate_SuperNode_Matrix(SuperMatrix *, int, int, int, doublecomplex *, 
    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 zCopy_Dense_Matrix(int, int, doublecomplex *, int, doublecomplex *, 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    zallocateA (int, int, doublecomplex **, int **, int **);
    kusano 7d535a
    00161 extern void    zgstrf (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     zsnode_dfs (const int, const int, const int *, const int *,
    kusano 7d535a
    00165                              const int *, int *, int *, GlobalLU_t *);
    kusano 7d535a
    00166 extern int     zsnode_bmod (const int, const int, const int, doublecomplex *,
    kusano 7d535a
    00167                               doublecomplex *, GlobalLU_t *, SuperLUStat_t*);
    kusano 7d535a
    00168 extern void    zpanel_dfs (const int, const int, const int, SuperMatrix *,
    kusano 7d535a
    00169                            int *, int *, doublecomplex *, int *, int *, int *,
    kusano 7d535a
    00170                            int *, int *, int *, int *, GlobalLU_t *);
    kusano 7d535a
    00171 extern void    zpanel_bmod (const int, const int, const int, const int,
    kusano 7d535a
    00172                            doublecomplex *, doublecomplex *, int *, int *,
    kusano 7d535a
    00173                            GlobalLU_t *, SuperLUStat_t*);
    kusano 7d535a
    00174 extern int     zcolumn_dfs (const int, const int, int *, int *, int *, int *,
    kusano 7d535a
    00175                            int *, int *, int *, int *, int *, GlobalLU_t *);
    kusano 7d535a
    00176 extern int     zcolumn_bmod (const int, const int, doublecomplex *,
    kusano 7d535a
    00177                            doublecomplex *, int *, int *, int,
    kusano 7d535a
    00178                            GlobalLU_t *, SuperLUStat_t*);
    kusano 7d535a
    00179 extern int     zcopy_to_ucol (int, int, int *, int *, int *,
    kusano 7d535a
    00180                               doublecomplex *, GlobalLU_t *);         
    kusano 7d535a
    00181 extern int     zpivotL (const int, const double, int *, int *, 
    kusano 7d535a
    00182                          int *, int *, int *, GlobalLU_t *, SuperLUStat_t*);
    kusano 7d535a
    00183 extern void    zpruneL (const int, const int *, const int, const int,
    kusano 7d535a
    00184                           const int *, const int *, int *, GlobalLU_t *);
    kusano 7d535a
    00185 extern void    zreadmt (int *, int *, int *, doublecomplex **, int **, int **);
    kusano 7d535a
    00186 extern void    zGenXtrue (int, int, doublecomplex *, int);
    kusano 7d535a
    00187 extern void    zFillRHS (trans_t, int, doublecomplex *, int, SuperMatrix *,
    kusano 7d535a
    00188                           SuperMatrix *);
    kusano 7d535a
    00189 extern void    zgstrs (trans_t, SuperMatrix *, SuperMatrix *, int *, int *,
    kusano 7d535a
    00190                         SuperMatrix *, SuperLUStat_t*, int *);
    kusano 7d535a
    00191 /* ILU */
    kusano 7d535a
    00192 extern void    zgsitrf (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     zldperm(int, int, int, int [], int [], doublecomplex [],
    kusano 7d535a
    00196                         int [], double [], double []);
    kusano 7d535a
    00197 extern int     ilu_zsnode_dfs (const int, const int, const int *, const int *,
    kusano 7d535a
    00198                                const int *, int *, GlobalLU_t *);
    kusano 7d535a
    00199 extern void    ilu_zpanel_dfs (const int, const int, const int, SuperMatrix *,
    kusano 7d535a
    00200                                int *, int *, doublecomplex *, double *, int *, int *,
    kusano 7d535a
    00201                                int *, int *, int *, int *, GlobalLU_t *);
    kusano 7d535a
    00202 extern int     ilu_zcolumn_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_zcopy_to_ucol (int, int, int *, int *, int *,
    kusano 7d535a
    00206                                   doublecomplex *, int, milu_t, double, int,
    kusano 7d535a
    00207                                   doublecomplex *, int *, GlobalLU_t *, double *);
    kusano 7d535a
    00208 extern int     ilu_zpivotL (const int, const double, int *, int *, int, int *,
    kusano 7d535a
    00209                             int *, int *, int *, double, milu_t,
    kusano 7d535a
    00210                             doublecomplex, GlobalLU_t *, SuperLUStat_t*);
    kusano 7d535a
    00211 extern int     ilu_zdrop_row (superlu_options_t *, int, int, double,
    kusano 7d535a
    00212                               int, int *, double *, GlobalLU_t *, 
    kusano 7d535a
    00213                               double *, double *, int);
    kusano 7d535a
    00214 
    kusano 7d535a
    00215 
    kusano 7d535a
    00218 extern void    zgsequ (SuperMatrix *, double *, double *, double *,
    kusano 7d535a
    00219                         double *, double *, int *);
    kusano 7d535a
    00220 extern void    zlaqgs (SuperMatrix *, double *, double *, double,
    kusano 7d535a
    00221                         double, double, char *);
    kusano 7d535a
    00222 extern void    zgscon (char *, SuperMatrix *, SuperMatrix *, 
    kusano 7d535a
    00223                          double, double *, SuperLUStat_t*, int *);
    kusano 7d535a
    00224 extern double   zPivotGrowth(int, SuperMatrix *, int *, 
    kusano 7d535a
    00225                             SuperMatrix *, SuperMatrix *);
    kusano 7d535a
    00226 extern void    zgsrfs (trans_t, SuperMatrix *, SuperMatrix *,
    kusano 7d535a
    00227                        SuperMatrix *, int *, int *, char *, double *, 
    kusano 7d535a
    00228                        double *, SuperMatrix *, SuperMatrix *,
    kusano 7d535a
    00229                        double *, double *, SuperLUStat_t*, int *);
    kusano 7d535a
    00230 
    kusano 7d535a
    00231 extern int     sp_ztrsv (char *, char *, char *, SuperMatrix *,
    kusano 7d535a
    00232                         SuperMatrix *, doublecomplex *, SuperLUStat_t*, int *);
    kusano 7d535a
    00233 extern int     sp_zgemv (char *, doublecomplex, SuperMatrix *, doublecomplex *,
    kusano 7d535a
    00234                         int, doublecomplex, doublecomplex *, int);
    kusano 7d535a
    00235 
    kusano 7d535a
    00236 extern int     sp_zgemm (char *, char *, int, int, int, doublecomplex,
    kusano 7d535a
    00237                         SuperMatrix *, doublecomplex *, int, doublecomplex, 
    kusano 7d535a
    00238                         doublecomplex *, int);
    kusano 7d535a
    00239 extern         double dlamch_(char *);
    kusano 7d535a
    00240 
    kusano 7d535a
    00241 
    kusano 7d535a
    00243 extern int     zLUMemInit (fact_t, void *, int, int, int, int, int,
    kusano 7d535a
    00244                             double, SuperMatrix *, SuperMatrix *,
    kusano 7d535a
    00245                             GlobalLU_t *, int **, doublecomplex **);
    kusano 7d535a
    00246 extern void    zSetRWork (int, int, doublecomplex *, doublecomplex **, doublecomplex **);
    kusano 7d535a
    00247 extern void    zLUWorkFree (int *, doublecomplex *, GlobalLU_t *);
    kusano 7d535a
    00248 extern int     zLUMemXpand (int, int, MemType, int *, GlobalLU_t *);
    kusano 7d535a
    00249 
    kusano 7d535a
    00250 extern doublecomplex  *doublecomplexMalloc(int);
    kusano 7d535a
    00251 extern doublecomplex  *doublecomplexCalloc(int);
    kusano 7d535a
    00252 extern double  *doubleMalloc(int);
    kusano 7d535a
    00253 extern double  *doubleCalloc(int);
    kusano 7d535a
    00254 extern int     zmemory_usage(const int, const int, const int, const int);
    kusano 7d535a
    00255 extern int     zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
    kusano 7d535a
    00256 extern int     ilu_zQuerySpace (SuperMatrix *, SuperMatrix *, mem_usage_t *);
    kusano 7d535a
    00257 
    kusano 7d535a
    00259 extern void    zreadhb(int *, int *, int *, doublecomplex **, int **, int **);
    kusano 7d535a
    00260 extern void    zreadrb(int *, int *, int *, doublecomplex **, int **, int **);
    kusano 7d535a
    00261 extern void    zreadtriple(int *, int *, int *, doublecomplex **, int **, int **);
    kusano 7d535a
    00262 extern void    zCompRow_to_CompCol(int, int, int, doublecomplex*, int*, int*,
    kusano 7d535a
    00263                                    doublecomplex **, int **, int **);
    kusano 7d535a
    00264 extern void    zfill (doublecomplex *, int, doublecomplex);
    kusano 7d535a
    00265 extern void    zinf_norm_error (int, SuperMatrix *, doublecomplex *);
    kusano 7d535a
    00266 extern void    PrintPerf (SuperMatrix *, SuperMatrix *, mem_usage_t *,
    kusano 7d535a
    00267                          doublecomplex, doublecomplex, doublecomplex *, doublecomplex *, char *);
    kusano 7d535a
    00268 extern double  dqselect(int, double *, int);
    kusano 7d535a
    00269 
    kusano 7d535a
    00270 
    kusano 7d535a
    00272 extern void    zPrint_CompCol_Matrix(char *, SuperMatrix *);
    kusano 7d535a
    00273 extern void    zPrint_SuperNode_Matrix(char *, SuperMatrix *);
    kusano 7d535a
    00274 extern void    zPrint_Dense_Matrix(char *, SuperMatrix *);
    kusano 7d535a
    00275 extern void    zprint_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, doublecomplex *);
    kusano 7d535a
    00278 
    kusano 7d535a
    00279 #ifdef __cplusplus
    kusano 7d535a
    00280   }
    kusano 7d535a
    00281 #endif
    kusano 7d535a
    00282 
    kusano 7d535a
    00283 #endif /* __SUPERLU_zSP_DEFS */
    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
    doxygen 1.5.5 
    kusano 7d535a
    kusano 7d535a