Anasazi  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AnasaziConfigDefs.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Anasazi: Block Eigensolvers Package
4 //
5 // Copyright 2004 NTESS and the Anasazi contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
15 #ifndef ANASAZI_CONFIGDEFS_HPP
16 #define ANASAZI_CONFIGDEFS_HPP
17 
18 #include "Teuchos_ConfigDefs.hpp"
19 
20 #ifndef __cplusplus
21 # define __cplusplus
22 #endif
23 
24 #ifndef TRILINOS_NO_CONFIG_H
25 
26 /*
27  * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to
28  * be undef'd here to avoid warnings when this file is included from another package.
29  * KL 11/25/02
30  */
31 # ifdef PACKAGE
32 # undef PACKAGE
33 # endif
34 
35 # ifdef PACKAGE_NAME
36 # undef PACKAGE_NAME
37 # endif
38 
39 # ifdef PACKAGE_BUGREPORT
40 # undef PACKAGE_BUGREPORT
41 # endif
42 
43 # ifdef PACKAGE_STRING
44 # undef PACKAGE_STRING
45 # endif
46 
47 # ifdef PACKAGE_TARNAME
48 # undef PACKAGE_TARNAME
49 # endif
50 
51 # ifdef PACKAGE_VERSION
52 # undef PACKAGE_VERSION
53 # endif
54 
55 # ifdef VERSION
56 # undef VERSION
57 # endif
58 
59 # include <Anasazi_config.h>
60 
61 # ifdef HAVE_MPI
62 # ifndef EPETRA_MPI
63 # define EPETRA_MPI
64 # endif
65 # endif
66 
67 #include <cstdlib>
68 #include <cstdio>
69 #include <string>
70 #include <vector>
71 #include <cctype>
72 #include <numeric>
73 #include <complex>
74 #include <iostream>
75 #include <iterator>
76 #include <stdexcept>
77 #include <cmath>
78 #include <functional>
79 
80 #else /*TRILINOS_NO_CONFIG_H is defined*/
81 
82 # include <iterator>
83 # include <iostream>
84 # include <string>
85 
86 # if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined (TFLOP)
87 # include <stdlib.h>
88 # include <stdio.h>
89 # include <math.h>
90 # else
91 # include <cstdlib>
92 # include <cstdio>
93 # include <cmath>
94 # endif
95 
96 # include <vector>
97 # include <map>
98 # include <deque>
99 # include <algorithm>
100 # include <numeric>
101 # include <functional>
102 
103 #endif /*ndef TRILINOS_NO_CONFIG_H*/
104 
105 /* Define some macros */
106 #define ANASAZI_MAX(x,y) (( (x) > (y) ) ? (x) : (y) ) /* max function */
107 #define ANASAZI_MIN(x,y) (( (x) < (y) ) ? (x) : (y) ) /* min function */
108 #define ANASAZI_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 ) /* sign function */
109 
110 #include "Anasazi_DLLExportMacro.h"
111 
112 /*
113  * Anasazi_Version() method
114  */
115 namespace Anasazi {
116  ANASAZI_LIB_DLL_EXPORT std::string Anasazi_Version();
117 }
118 
119 #endif /*ANASAZI_CONFIGDEFS_HPP*/