datatypes.h
Go to the documentation of this file.
1 /* This contains a limited subset of the typedefs exposed by f2c
2  for use by the Eigen BLAS C-only implementation.
3 */
4 
5 #ifndef __EIGEN_DATATYPES_H__
6 #define __EIGEN_DATATYPES_H__
7 
8 typedef int integer;
9 typedef unsigned int uinteger;
10 typedef float real;
11 typedef double doublereal;
12 typedef struct {
13  real r, i;
14 } complex;
15 typedef struct {
18 typedef int logical;
19 
20 #define abs(x) ((x) >= 0 ? (x) : -(x))
21 #define dabs(x) (doublereal) abs(x)
22 #define min(a, b) ((a) <= (b) ? (a) : (b))
23 #define max(a, b) ((a) >= (b) ? (a) : (b))
24 #define dmin(a, b) (doublereal) min(a, b)
25 #define dmax(a, b) (doublereal) max(a, b)
26 
27 #endif
float real
Definition: datatypes.h:10
double doublereal
Definition: datatypes.h:11
int integer
Definition: datatypes.h:8
unsigned int uinteger
Definition: datatypes.h:9
int logical
Definition: datatypes.h:18
r
Definition: UniformPSDSelfTest.py:20
Definition: datatypes.h:12
real i
Definition: datatypes.h:13
Definition: datatypes.h:15
doublereal i
Definition: datatypes.h:16
Definition: main.h:115