TRIQS/triqs_Nevanlinna 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
types.hpp
1#ifndef TRIQS_NEVANLINNA_TYPES_HPP
2#define TRIQS_NEVANLINNA_TYPES_HPP
3
4#include <Eigen/Dense>
5#include <nda/nda.hpp>
6
7#include "triqs_Nevanlinna/complex.hpp"
8
9namespace triqs_Nevanlinna {
10 using nda::range;
11
12 static constexpr auto _ = nda::range::all;
13 static constexpr auto __ = nda::ellipsis{};
14
15 using complex_mpt = std::complex<real_mpt>;
16 using matrix_cplx_mpt = Eigen::Matrix<complex_mpt, Eigen::Dynamic, Eigen::Dynamic>;
17
18 static const auto I = complex_mpt{0., 1.};
19 static const auto One = complex_mpt{1., 0.};
20
21 static const int NEVANLINNA_NUM_THREADS = []() {
22 const char *s = std::getenv("NEVANLINNA_NUM_THREADS");
23 return s ? std::stoi(s) : 1;
24 }();
25
26} // namespace triqs_Nevanlinna
27#endif //TRIQS_NEVANLINNA_TYPES_HPP