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 #include "Teuchos_ConfigDefs.hpp"
00038
00039 #ifndef __cplusplus
00040 # define __cplusplus
00041 #endif
00042
00043 #ifndef TRILINOS_NO_CONFIG_H
00044
00045
00046
00047
00048
00049
00050 # ifdef PACKAGE
00051 # undef PACKAGE
00052 # endif
00053
00054 # ifdef PACKAGE_NAME
00055 # undef PACKAGE_NAME
00056 # endif
00057
00058 # ifdef PACKAGE_BUGREPORT
00059 # undef PACKAGE_BUGREPORT
00060 # endif
00061
00062 # ifdef PACKAGE_STRING
00063 # undef PACKAGE_STRING
00064 # endif
00065
00066 # ifdef PACKAGE_TARNAME
00067 # undef PACKAGE_TARNAME
00068 # endif
00069
00070 # ifdef PACKAGE_VERSION
00071 # undef PACKAGE_VERSION
00072 # endif
00073
00074 # ifdef VERSION
00075 # undef VERSION
00076 # endif
00077
00078 # include <Anasazi_config.h>
00079
00080 # ifdef HAVE_MPI
00081 # ifndef EPETRA_MPI
00082 # define EPETRA_MPI
00083 # endif
00084 # endif
00085
00086 #include <cstdlib>
00087 #include <cstdio>
00088 #include <string>
00089 #include <vector>
00090 #include <cctype>
00091 #include <numeric>
00092 #include <complex>
00093 #include <iostream>
00094 #include <iterator>
00095 #include <stdexcept>
00096 #include <cmath>
00097
00098 #else
00099
00100 # include <iterator>
00101 # include <iostream>
00102 # include <string>
00103
00104 # if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined (TFLOP)
00105 # include <stdlib.h>
00106 # include <stdio.h>
00107 # include <math.h>
00108 # else
00109 # include <cstdlib>
00110 # include <cstdio>
00111 # include <cmath>
00112 # endif
00113
00114 # include <vector>
00115 # include <map>
00116 # include <deque>
00117 # include <algorithm>
00118 # include <numeric>
00119
00120 #endif
00121
00122
00123 #define ANASAZI_MAX(x,y) (( (x) > (y) ) ? (x) : (y) )
00124 #define ANASAZI_MIN(x,y) (( (x) < (y) ) ? (x) : (y) )
00125 #define ANASAZI_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 )
00126
00127 #ifdef HAVE_TEUCHOS_COMPLEX
00128 # if defined(HAVE_COMPLEX)
00129 # define ANSZI_CPLX_CLASS std::complex
00130 # elif defined(HAVE_COMPLEX_H)
00131 # define ANSZI_CPLX_CLASS ::complex
00132 # endif
00133 #endif
00134
00135
00136
00137
00138 namespace Anasazi {
00139 std::string Anasazi_Version();
00140 }
00141
00142 #endif