CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/PhysicsTools/MVATrainer/plugins/mlp_lapack.h

Go to the documentation of this file.
00001 #ifndef __private_mlp_lapack_h
00002 #define __private_mlp_lapack_h
00003 
00004 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 4)
00005 #       define MLP_HIDDEN __attribute__((visibility("hidden")))
00006 #endif
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012 typedef long int integer;
00013 typedef unsigned long uinteger;
00014 typedef char *address;
00015 typedef short int shortint;
00016 typedef float real;
00017 typedef double doublereal;
00018 typedef struct { real r, i; } complex;
00019 typedef struct { doublereal r, i; } doublecomplex;
00020 typedef long int logical;
00021 typedef short int shortlogical;
00022 typedef char logical1;
00023 typedef char integer1;
00024 #if 0   /* Adjust for integer*8. */
00025 typedef long long longint;              /* system-dependent */
00026 typedef unsigned long long ulongint;    /* system-dependent */
00027 #define qbit_clear(a,b) ((a) & ~((ulongint)1 << (b)))
00028 #define qbit_set(a,b)   ((a) |  ((ulongint)1 << (b)))
00029 #endif
00030 
00031 #define TRUE_ (1)
00032 #define FALSE_ (0)
00033 
00034 /* Extern is for use with -E */
00035 #ifndef Extern
00036 #define Extern extern
00037 #endif
00038 
00039 /* I/O stuff */
00040 
00041 #ifdef f2c_i2
00042 /* for -i2 */
00043 typedef short flag;
00044 typedef short ftnlen;
00045 typedef short ftnint;
00046 #else
00047 typedef long int flag;
00048 typedef long int ftnlen;
00049 typedef long int ftnint;
00050 #endif
00051 
00052 /*external read, write*/
00053 typedef struct
00054 {       flag cierr;
00055         ftnint ciunit;
00056         flag ciend;
00057         char *cifmt;
00058         ftnint cirec;
00059 } cilist;
00060 
00061 /*internal read, write*/
00062 typedef struct
00063 {       flag icierr;
00064         char *iciunit;
00065         flag iciend;
00066         char *icifmt;
00067         ftnint icirlen;
00068         ftnint icirnum;
00069 } icilist;
00070 
00071 /*open*/
00072 typedef struct
00073 {       flag oerr;
00074         ftnint ounit;
00075         char *ofnm;
00076         ftnlen ofnmlen;
00077         char *osta;
00078         char *oacc;
00079         char *ofm;
00080         ftnint orl;
00081         char *oblnk;
00082 } olist;
00083 
00084 /*close*/
00085 typedef struct
00086 {       flag cerr;
00087         ftnint cunit;
00088         char *csta;
00089 } cllist;
00090 
00091 /*rewind, backspace, endfile*/
00092 typedef struct
00093 {       flag aerr;
00094         ftnint aunit;
00095 } alist;
00096 
00097 /* inquire */
00098 typedef struct
00099 {       flag inerr;
00100         ftnint inunit;
00101         char *infile;
00102         ftnlen infilen;
00103         ftnint  *inex;  /*parameters in standard's order*/
00104         ftnint  *inopen;
00105         ftnint  *innum;
00106         ftnint  *innamed;
00107         char    *inname;
00108         ftnlen  innamlen;
00109         char    *inacc;
00110         ftnlen  inacclen;
00111         char    *inseq;
00112         ftnlen  inseqlen;
00113         char    *indir;
00114         ftnlen  indirlen;
00115         char    *infmt;
00116         ftnlen  infmtlen;
00117         char    *inform;
00118         ftnint  informlen;
00119         char    *inunf;
00120         ftnlen  inunflen;
00121         ftnint  *inrecl;
00122         ftnint  *innrec;
00123         char    *inblank;
00124         ftnlen  inblanklen;
00125 } inlist;
00126 
00127 #define VOID void
00128 
00129 union Multitype {       /* for multiple entry points */
00130         integer1 g;
00131         shortint h;
00132         integer i;
00133         /* longint j; */
00134         real r;
00135         doublereal d;
00136         complex c;
00137         doublecomplex z;
00138         };
00139 
00140 typedef union Multitype Multitype;
00141 
00142 /*typedef long int Long;*/      /* No longer used; formerly in Namelist */
00143 
00144 struct Vardesc {        /* for Namelist */
00145         char *name;
00146         char *addr;
00147         ftnlen *dims;
00148         int  type;
00149         };
00150 typedef struct Vardesc Vardesc;
00151 
00152 struct Namelist {
00153         char *name;
00154         Vardesc **vars;
00155         int nvars;
00156         };
00157 typedef struct Namelist Namelist;
00158 
00159 #define abs(x) ((x) >= 0 ? (x) : -(x))
00160 #define dabs(x) (doublereal)abs(x)
00161 #define min(a,b) ((a) <= (b) ? (a) : (b))
00162 #define max(a,b) ((a) >= (b) ? (a) : (b))
00163 #define dmin(a,b) (doublereal)min(a,b)
00164 #define dmax(a,b) (doublereal)max(a,b)
00165 #define bit_test(a,b)   ((a) >> (b) & 1)
00166 #define bit_clear(a,b)  ((a) & ~((uinteger)1 << (b)))
00167 #define bit_set(a,b)    ((a) |  ((uinteger)1 << (b)))
00168 
00169 /* procedure parameter types for -A and -C++ */
00170 
00171 #define F2C_proc_par_types 1
00172 #ifdef __cplusplus
00173 typedef int /* Unknown procedure type */ (*U_fp)(...);
00174 typedef shortint (*J_fp)(...);
00175 typedef integer (*I_fp)(...);
00176 typedef real (*R_fp)(...);
00177 typedef doublereal (*D_fp)(...), (*E_fp)(...);
00178 typedef /* Complex */ VOID (*C_fp)(...);
00179 typedef /* Double Complex */ VOID (*Z_fp)(...);
00180 typedef logical (*L_fp)(...);
00181 typedef shortlogical (*K_fp)(...);
00182 typedef /* Character */ VOID (*H_fp)(...);
00183 typedef /* Subroutine */ int (*S_fp)(...);
00184 #else
00185 typedef int /* Unknown procedure type */ (*U_fp)();
00186 typedef shortint (*J_fp)();
00187 typedef integer (*I_fp)();
00188 typedef real (*R_fp)();
00189 typedef doublereal (*D_fp)(), (*E_fp)();
00190 typedef /* Complex */ VOID (*C_fp)();
00191 typedef /* Double Complex */ VOID (*Z_fp)();
00192 typedef logical (*L_fp)();
00193 typedef shortlogical (*K_fp)();
00194 typedef /* Character */ VOID (*H_fp)();
00195 typedef /* Subroutine */ int (*S_fp)();
00196 #endif
00197 /* E_fp is for real functions when -R is not specified */
00198 typedef VOID C_f;       /* complex function */
00199 typedef VOID H_f;       /* character function */
00200 typedef VOID Z_f;       /* double complex function */
00201 typedef doublereal E_f; /* real function with -R not specified */
00202 
00203 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
00204 
00205 #ifndef Skip_f2c_Undefs
00206 #undef cray
00207 #undef gcos
00208 #undef mc68010
00209 #undef mc68020
00210 #undef mips
00211 #undef pdp11
00212 #undef sgi
00213 #undef sparc
00214 #undef sun
00215 #undef sun2
00216 #undef sun3
00217 #undef sun4
00218 #undef u370
00219 #undef u3b
00220 #undef u3b2
00221 #undef u3b5
00222 #undef unix
00223 #undef vax
00224 #endif
00225 
00226 #ifdef __cplusplus
00227 } // extern "C"
00228 #endif
00229 
00230 #endif // __private_mlp_lapack_h