diff options
author | Alberto Ruiz <aruiz@um.es> | 2008-01-17 18:50:14 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2008-01-17 18:50:14 +0000 |
commit | d4c8878eb2e6114fd483e1225f060dfec1fc100c (patch) | |
tree | 22242f8581a0624fc178185fc46e7575c81af1f3 /lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.h | |
parent | 0d26c1fc0eccdeb585a74d96cbe7861cf20c7bd2 (diff) |
removed f2c.h
Diffstat (limited to 'lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.h')
-rw-r--r-- | lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.h | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.h b/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.h index bccd4b8..79e52be 100644 --- a/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.h +++ b/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.h | |||
@@ -1,6 +1,45 @@ | |||
1 | #include "f2c.h" | 1 | /* |
2 | * We have copied the definitions in f2c.h required | ||
3 | * to compile clapack.h, modified to support both | ||
4 | * 32 and 64 bit | ||
5 | |||
6 | http://opengrok.creo.hu/dragonfly/xref/src/contrib/gcc-3.4/libf2c/readme.netlib | ||
7 | http://www.ibm.com/developerworks/library/l-port64.html | ||
8 | */ | ||
9 | |||
10 | #ifdef _LP64 | ||
11 | typedef int integer; | ||
12 | typedef unsigned int uinteger; | ||
13 | typedef int logical; | ||
14 | typedef long longint; /* system-dependent */ | ||
15 | typedef unsigned long ulongint; /* system-dependent */ | ||
16 | #else | ||
17 | typedef long int integer; | ||
18 | typedef unsigned long int uinteger; | ||
19 | typedef long int logical; | ||
20 | typedef long long longint; /* system-dependent */ | ||
21 | typedef unsigned long long ulongint; /* system-dependent */ | ||
22 | #endif | ||
23 | |||
24 | typedef char *address; | ||
25 | typedef short int shortint; | ||
26 | typedef float real; | ||
27 | typedef double doublereal; | ||
28 | typedef struct { real r, i; } complex; | ||
29 | typedef struct { doublereal r, i; } doublecomplex; | ||
30 | typedef short int shortlogical; | ||
31 | typedef char logical1; | ||
32 | typedef char integer1; | ||
33 | |||
34 | typedef logical (*L_fp)(); | ||
35 | typedef short ftnlen; | ||
36 | |||
37 | /********************************************************/ | ||
38 | |||
2 | #include "clapack.h" | 39 | #include "clapack.h" |
3 | 40 | ||
41 | /********************************************************/ | ||
42 | |||
4 | #define DVEC(A) int A##n, double*A##p | 43 | #define DVEC(A) int A##n, double*A##p |
5 | #define CVEC(A) int A##n, double*A##p | 44 | #define CVEC(A) int A##n, double*A##p |
6 | #define DMAT(A) int A##r, int A##c, double* A##p | 45 | #define DMAT(A) int A##r, int A##c, double* A##p |