CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mlp_lapack.h
Go to the documentation of this file.
1 #ifndef __private_mlp_lapack_h
2 #define __private_mlp_lapack_h
3 
4 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 4)
5 # define MLP_HIDDEN __attribute__((visibility("hidden")))
6 #endif
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 typedef long int integer;
13 typedef unsigned long uinteger;
14 typedef char *address;
15 typedef short int shortint;
16 typedef float real;
17 typedef double doublereal;
18 typedef struct { real r, i; } complex;
19 typedef struct { doublereal r, i; } doublecomplex;
20 typedef long int logical;
21 typedef short int shortlogical;
22 typedef char logical1;
23 typedef char integer1;
24 #if 0 /* Adjust for integer*8. */
25 typedef long long longint; /* system-dependent */
26 typedef unsigned long long ulongint; /* system-dependent */
27 #define qbit_clear(a,b) ((a) & ~((ulongint)1 << (b)))
28 #define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
29 #endif
30 
31 #define TRUE_ (1)
32 #define FALSE_ (0)
33 
34 /* Extern is for use with -E */
35 #ifndef Extern
36 #define Extern extern
37 #endif
38 
39 /* I/O stuff */
40 
41 #ifdef f2c_i2
42 /* for -i2 */
43 typedef short flag;
44 typedef short ftnlen;
45 typedef short ftnint;
46 #else
47 typedef long int flag;
48 typedef long int ftnlen;
49 typedef long int ftnint;
50 #endif
51 
52 /*external read, write*/
53 typedef struct
54 { flag cierr;
55  ftnint ciunit;
56  flag ciend;
57  char *cifmt;
58  ftnint cirec;
59 } cilist;
60 
61 /*internal read, write*/
62 typedef struct
63 { flag icierr;
64  char *iciunit;
65  flag iciend;
66  char *icifmt;
67  ftnint icirlen;
68  ftnint icirnum;
69 } icilist;
70 
71 /*open*/
72 typedef struct
73 { flag oerr;
74  ftnint ounit;
75  char *ofnm;
76  ftnlen ofnmlen;
77  char *osta;
78  char *oacc;
79  char *ofm;
80  ftnint orl;
81  char *oblnk;
82 } olist;
83 
84 /*close*/
85 typedef struct
86 { flag cerr;
87  ftnint cunit;
88  char *csta;
89 } cllist;
90 
91 /*rewind, backspace, endfile*/
92 typedef struct
93 { flag aerr;
94  ftnint aunit;
95 } alist;
96 
97 /* inquire */
98 typedef struct
99 { flag inerr;
100  ftnint inunit;
101  char *infile;
102  ftnlen infilen;
103  ftnint *inex; /*parameters in standard's order*/
104  ftnint *inopen;
105  ftnint *innum;
106  ftnint *innamed;
107  char *inname;
108  ftnlen innamlen;
109  char *inacc;
110  ftnlen inacclen;
111  char *inseq;
112  ftnlen inseqlen;
113  char *indir;
114  ftnlen indirlen;
115  char *infmt;
116  ftnlen infmtlen;
117  char *inform;
118  ftnint informlen;
119  char *inunf;
120  ftnlen inunflen;
121  ftnint *inrecl;
122  ftnint *innrec;
123  char *inblank;
124  ftnlen inblanklen;
125 } inlist;
126 
127 #define VOID void
128 
129 union Multitype { /* for multiple entry points */
130  integer1 g;
131  shortint h;
132  integer i;
133  /* longint j; */
134  real r;
135  doublereal d;
138  };
139 
140 typedef union Multitype Multitype;
141 
142 /*typedef long int Long;*/ /* No longer used; formerly in Namelist */
143 
144 struct Vardesc { /* for Namelist */
145  char *name;
146  char *addr;
147  ftnlen *dims;
148  int type;
149  };
150 typedef struct Vardesc Vardesc;
151 
152 struct Namelist {
153  char *name;
155  int nvars;
156  };
157 typedef struct Namelist Namelist;
158 
159 #define abs(x) ((x) >= 0 ? (x) : -(x))
160 #define dabs(x) (doublereal)abs(x)
161 #define min(a,b) ((a) <= (b) ? (a) : (b))
162 #define max(a,b) ((a) >= (b) ? (a) : (b))
163 #define dmin(a,b) (doublereal)min(a,b)
164 #define dmax(a,b) (doublereal)max(a,b)
165 #define bit_test(a,b) ((a) >> (b) & 1)
166 #define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
167 #define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
168 
169 /* procedure parameter types for -A and -C++ */
170 
171 #define F2C_proc_par_types 1
172 #ifdef __cplusplus
173 typedef int /* Unknown procedure type */ (*U_fp)(...);
174 typedef shortint (*J_fp)(...);
175 typedef integer (*I_fp)(...);
176 typedef real (*R_fp)(...);
177 typedef doublereal (*D_fp)(...), (*E_fp)(...);
178 typedef /* Complex */ VOID (*C_fp)(...);
179 typedef /* Double Complex */ VOID (*Z_fp)(...);
180 typedef logical (*L_fp)(...);
181 typedef shortlogical (*K_fp)(...);
182 typedef /* Character */ VOID (*H_fp)(...);
183 typedef /* Subroutine */ int (*S_fp)(...);
184 #else
185 typedef int /* Unknown procedure type */ (*U_fp)();
186 typedef shortint (*J_fp)();
187 typedef integer (*I_fp)();
188 typedef real (*R_fp)();
189 typedef doublereal (*D_fp)(), (*E_fp)();
190 typedef /* Complex */ VOID (*C_fp)();
191 typedef /* Double Complex */ VOID (*Z_fp)();
192 typedef logical (*L_fp)();
193 typedef shortlogical (*K_fp)();
194 typedef /* Character */ VOID (*H_fp)();
195 typedef /* Subroutine */ int (*S_fp)();
196 #endif
197 /* E_fp is for real functions when -R is not specified */
198 typedef VOID C_f; /* complex function */
199 typedef VOID H_f; /* character function */
200 typedef VOID Z_f; /* double complex function */
201 typedef doublereal E_f; /* real function with -R not specified */
202 
203 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
204 
205 #ifndef Skip_f2c_Undefs
206 #undef cray
207 #undef gcos
208 #undef mc68010
209 #undef mc68020
210 #undef mips
211 #undef pdp11
212 #undef sgi
213 #undef sparc
214 #undef sun
215 #undef sun2
216 #undef sun3
217 #undef sun4
218 #undef u370
219 #undef u3b
220 #undef u3b2
221 #undef u3b5
222 #undef unix
223 #undef vax
224 #endif
225 
226 #ifdef __cplusplus
227 } // extern "C"
228 #endif
229 
230 #endif // __private_mlp_lapack_h
doublereal d
Definition: mlp_lapack.h:135
ftnint icirnum
Definition: mlp_lapack.h:68
shortint h
Definition: mlp_lapack.h:131
char * oblnk
Definition: mlp_lapack.h:81
int i
Definition: DBlmapReader.cc:9
int type
Definition: mlp_lapack.h:148
long int flag
Definition: mlp_lapack.h:47
char integer1
Definition: mlp_lapack.h:23
long int ftnlen
Definition: mlp_lapack.h:48
char * inblank
Definition: mlp_lapack.h:123
char * address
Definition: mlp_lapack.h:14
doublereal E_f
Definition: mlp_lapack.h:201
ftnint * inrecl
Definition: mlp_lapack.h:121
complex c
Definition: mlp_lapack.h:136
char * inacc
Definition: mlp_lapack.h:109
ftnlen inacclen
Definition: mlp_lapack.h:110
ftnlen inunflen
Definition: mlp_lapack.h:120
char * icifmt
Definition: mlp_lapack.h:66
ftnlen infilen
Definition: mlp_lapack.h:102
char * iciunit
Definition: mlp_lapack.h:64
#define VOID
Definition: mlp_lapack.h:127
VOID(* C_fp)()
Definition: mlp_lapack.h:190
VOID C_f
Definition: mlp_lapack.h:198
char * name
Definition: mlp_lapack.h:153
ftnint icirlen
Definition: mlp_lapack.h:67
char * infmt
Definition: mlp_lapack.h:115
ftnint ounit
Definition: mlp_lapack.h:74
flag icierr
Definition: mlp_lapack.h:63
char * infile
Definition: mlp_lapack.h:101
logical(* L_fp)()
Definition: mlp_lapack.h:192
long int integer
Definition: mlp_lapack.h:12
ftnlen ofnmlen
Definition: mlp_lapack.h:76
double doublereal
Definition: mlp_lapack.h:17
ftnint cirec
Definition: mlp_lapack.h:58
ftnint * innum
Definition: mlp_lapack.h:105
long int logical
Definition: mlp_lapack.h:20
ftnint * innamed
Definition: mlp_lapack.h:106
flag ciend
Definition: mlp_lapack.h:56
char * csta
Definition: mlp_lapack.h:88
flag oerr
Definition: mlp_lapack.h:73
char * ofm
Definition: mlp_lapack.h:79
ftnlen indirlen
Definition: mlp_lapack.h:114
doublereal r
Definition: mlp_lapack.h:19
ftnint inunit
Definition: mlp_lapack.h:100
doublereal(*)(* E_fp)()
Definition: mlp_lapack.h:189
char * oacc
Definition: mlp_lapack.h:78
flag cerr
Definition: mlp_lapack.h:86
VOID(* Z_fp)()
Definition: mlp_lapack.h:191
flag cierr
Definition: mlp_lapack.h:54
shortint(* J_fp)()
Definition: mlp_lapack.h:186
ftnlen innamlen
Definition: mlp_lapack.h:108
unsigned long uinteger
Definition: mlp_lapack.h:13
flag iciend
Definition: mlp_lapack.h:65
char logical1
Definition: mlp_lapack.h:22
float real
Definition: mlp_lapack.h:16
char * inname
Definition: mlp_lapack.h:107
long int ftnint
Definition: mlp_lapack.h:49
char * cifmt
Definition: mlp_lapack.h:57
Vardesc ** vars
Definition: mlp_lapack.h:154
char * ofnm
Definition: mlp_lapack.h:75
char * inform
Definition: mlp_lapack.h:117
char * indir
Definition: mlp_lapack.h:113
ftnint * inopen
Definition: mlp_lapack.h:104
ftnlen inseqlen
Definition: mlp_lapack.h:112
char * inunf
Definition: mlp_lapack.h:119
int(* S_fp)()
Definition: mlp_lapack.h:195
ftnint * inex
Definition: mlp_lapack.h:103
ftnint informlen
Definition: mlp_lapack.h:118
ftnint * innrec
Definition: mlp_lapack.h:122
ftnlen infmtlen
Definition: mlp_lapack.h:116
char * addr
Definition: mlp_lapack.h:146
ftnlen inblanklen
Definition: mlp_lapack.h:124
ftnint cunit
Definition: mlp_lapack.h:87
doublecomplex z
Definition: mlp_lapack.h:137
real(* R_fp)()
Definition: mlp_lapack.h:188
integer1 g
Definition: mlp_lapack.h:130
doublereal(* D_fp)()
Definition: mlp_lapack.h:189
ftnint aunit
Definition: mlp_lapack.h:94
char * osta
Definition: mlp_lapack.h:77
VOID H_f
Definition: mlp_lapack.h:199
integer i
Definition: mlp_lapack.h:132
VOID Z_f
Definition: mlp_lapack.h:200
shortlogical(* K_fp)()
Definition: mlp_lapack.h:193
flag aerr
Definition: mlp_lapack.h:93
ftnint ciunit
Definition: mlp_lapack.h:55
ftnlen * dims
Definition: mlp_lapack.h:147
int nvars
Definition: mlp_lapack.h:155
VOID(* H_fp)()
Definition: mlp_lapack.h:194
char * name
Definition: mlp_lapack.h:145
flag inerr
Definition: mlp_lapack.h:99
ftnint orl
Definition: mlp_lapack.h:80
short int shortlogical
Definition: mlp_lapack.h:21
real r
Definition: mlp_lapack.h:18
integer(* I_fp)()
Definition: mlp_lapack.h:187
char * inseq
Definition: mlp_lapack.h:111
short int shortint
Definition: mlp_lapack.h:15