Anasazi Version of the Day
Loading...
Searching...
No Matches
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#include <cstdlib>
62#include <cstdio>
63#include <string>
64#include <vector>
65#include <cctype>
66#include <numeric>
67#include <complex>
68#include <iostream>
69#include <iterator>
70#include <stdexcept>
71#include <cmath>
72#include <functional>
73
74#else /*TRILINOS_NO_CONFIG_H is defined*/
75
76# include <iterator>
77# include <iostream>
78# include <string>
79
80# if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined (TFLOP)
81# include <stdlib.h>
82# include <stdio.h>
83# include <math.h>
84# else
85# include <cstdlib>
86# include <cstdio>
87# include <cmath>
88# endif
89
90# include <vector>
91# include <map>
92# include <deque>
93# include <algorithm>
94# include <numeric>
95# include <functional>
96
97#endif /*ndef TRILINOS_NO_CONFIG_H*/
98
99/* Define some macros */
100#define ANASAZI_MAX(x,y) (( (x) > (y) ) ? (x) : (y) ) /* max function */
101#define ANASAZI_MIN(x,y) (( (x) < (y) ) ? (x) : (y) ) /* min function */
102#define ANASAZI_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 ) /* sign function */
103
104#include "Anasazi_DLLExportMacro.h"
105
106/*
107 * Anasazi_Version() method
108 */
109namespace Anasazi {
110 ANASAZI_LIB_DLL_EXPORT std::string Anasazi_Version();
111}
112
113#endif /*ANASAZI_CONFIGDEFS_HPP*/
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.