DFT-EFE
 
Loading...
Searching...
No Matches
TypeConfig.h
Go to the documentation of this file.
1#ifndef dftefeTypeConfig_h
2#define dftefeTypeConfig_h
3
4#include <complex>
5
6namespace dftefe
7{
8 using size_type = unsigned int;
9 using global_size_type = unsigned long int;
10
11 /* define RealType of a ValueType */
12
13 template <typename T>
14 struct RealType
15 {
16 typedef void Type;
17 };
18
19 template <>
20 struct RealType<int>
21 {
22 typedef int Type;
23 };
24
25 template <>
26 struct RealType<float>
27 {
28 typedef float Type;
29 };
30
31 template <>
32 struct RealType<double>
33 {
34 typedef double Type;
35 };
36
37 template <>
38 struct RealType<std::complex<float>>
39 {
40 typedef float Type;
41 };
42
43 template <>
44 struct RealType<std::complex<double>>
45 {
46 typedef double Type;
47 };
48
49} // namespace dftefe
50#endif
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8
unsigned long int global_size_type
Definition: TypeConfig.h:9
double Type
Definition: TypeConfig.h:34
float Type
Definition: TypeConfig.h:28
int Type
Definition: TypeConfig.h:22
double Type
Definition: TypeConfig.h:46
float Type
Definition: TypeConfig.h:40
Definition: TypeConfig.h:15
void Type
Definition: TypeConfig.h:16