votca 2024.2-dev
Loading...
Searching...
No Matches
eigen.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#ifndef VOTCA_TOOLS_EIGEN_H
21#define VOTCA_TOOLS_EIGEN_H
22
23// Local VOTCA includes
24#include "votca_tools_config.h"
25
26#ifdef MKL_FOUND
27#include <mkl.h>
28#define EIGEN_USE_MKL_ALL
29#endif
30
31#if defined(FFTW3_FOUND) || defined(MKL_FOUND)
32#define EIGEN_FFTW_DEFAULT
33#endif
34
40#if (defined(__GNUC__) || defined(__GNUG__)) && \
41 !(defined(__clang__) || defined(__INTEL_COMPILER))
42#define STRICT_GNUC
43#define GCC_VERSION \
44 (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
45#endif
46
47#if (defined STRICT_GNUC) && GCC_VERSION > 70000
48#pragma GCC diagnostic push
49#pragma GCC diagnostic ignored "-Wint-in-bool-context"
50#endif
51#include <Eigen/Eigen>
52#include <unsupported/Eigen/CXX11/Tensor>
53#include <unsupported/Eigen/FFT>
54#include <unsupported/Eigen/SparseExtra>
55#if (defined STRICT_GNUC) && GCC_VERSION > 70000
56#pragma GCC diagnostic pop
57#endif
58
59#endif // VOTCA_TOOLS_EIGEN_H