00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00034 #ifndef ANASAZI_CONFIGDEFS_HPP
00035 #define ANASAZI_CONFIGDEFS_HPP
00036
00037 #ifndef __cplusplus
00038 #define __cplusplus
00039 #endif
00040
00041 #ifdef HAVE_CONFIG_H
00042
00043
00044
00045
00046
00047
00048 #ifdef PACKAGE
00049 #undef PACKAGE
00050 #endif
00051
00052 #ifdef PACKAGE_NAME
00053 #undef PACKAGE_NAME
00054 #endif
00055
00056 #ifdef PACKAGE_BUGREPORT
00057 #undef PACKAGE_BUGREPORT
00058 #endif
00059
00060 #ifdef PACKAGE_STRING
00061 #undef PACKAGE_STRING
00062 #endif
00063
00064 #ifdef PACKAGE_TARNAME
00065 #undef PACKAGE_TARNAME
00066 #endif
00067
00068 #ifdef PACKAGE_VERSION
00069 #undef PACKAGE_VERSION
00070 #endif
00071
00072 #ifdef VERSION
00073 #undef VERSION
00074 #endif
00075
00076 #include <Anasazi_config.h>
00077
00078 #ifdef HAVE_MPI
00079 #ifndef EPETRA_MPI
00080 #define EPETRA_MPI
00081 #endif
00082 #endif
00083
00084 #ifdef HAVE_CSTDLIB
00085 #include <cstdlib>
00086 #else
00087 #include <stdlib.h>
00088 #endif
00089
00090 #ifdef HAVE_CSTDIO
00091 #include <cstdio>
00092 #else
00093 #include <stdio.h>
00094 #endif
00095
00096 #ifdef HAVE_CASSERT
00097 #include <cassert>
00098 #else
00099 #include <assert.h>
00100 #endif
00101
00102 #ifdef HAVE_STRING
00103 #include <string>
00104 #else
00105 #include <string.h>
00106 #endif
00107
00108 #ifdef HAVE_VECTOR
00109 #include <vector>
00110 #else
00111 #include <vector.h>
00112 #endif
00113
00114 #ifdef HAVE_COMPLEX
00115 #include <complex>
00116 #else
00117 #include <complex.h>
00118 #endif
00119
00120 #ifdef HAVE_IOSTREAM
00121 #include <iostream>
00122 #else
00123 #include <iostream.h>
00124 #endif
00125
00126 #ifdef HAVE_ITERATOR
00127 #include <iterator>
00128 #else
00129 #include <iterator.h>
00130 #endif
00131
00132 #if HAVE_STDEXCEPT
00133 #include <stdexcept>
00134 #elif HAVE_STDEXCEPT_H
00135 #include <stdexcept.h>
00136 #endif
00137
00138 #ifndef JANUS_STLPORT
00139 #ifdef HAVE_CMATH
00140 #include <cmath>
00141 #else
00142 #include <math.h>
00143 #endif
00144 #else
00145 #include <math.h>
00146 #endif
00147
00148 using namespace std;
00149
00150 #else
00151
00152 #include <iterator>
00153 #include <iostream>
00154 #include <string>
00155
00156 #if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined (TFLOP)
00157
00158 #include <stdlib.h>
00159 #include <stdio.h>
00160 #include <assert.h>
00161 #include <math.h>
00162
00163 #else
00164
00165 #include <cstdlib>
00166 #include <cstdio>
00167 #include <cassert>
00168 #include <cmath>
00169
00170 #endif
00171
00172 #include <vector>
00173 #include <map>
00174 #include <deque>
00175 #include <algorithm>
00176
00177 using namespace std;
00178
00179 #endif
00180
00181
00182 #define ANASAZI_MAX(x,y) (( (x) > (y) ) ? (x) : (y) )
00183 #define ANASAZI_MIN(x,y) (( (x) < (y) ) ? (x) : (y) )
00184 #define ANASAZI_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 )
00185
00186
00187
00188
00189 namespace Anasazi {
00190 string Anasazi_Version();
00191 }
00192
00193 #endif