ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_base
macros.h
Go to the documentation of this file.
1
#ifndef MODULE_BASE_MACROS_H
2
#define MODULE_BASE_MACROS_H
3
4
#include <complex>
5
6
template
<
typename
T>
7
struct
GetTypeReal
{
8
using
type
=
T
;
9
};
10
16
template
<>
17
struct
GetTypeReal
<std::
complex
<float>> {
18
using
type
= float;
19
};
20
26
template
<>
27
struct
GetTypeReal
<std::
complex
<double>> {
28
using
type
= double;
29
};
30
31
#endif
complex
std::complex< double > complex
Definition
diago_cusolver.cpp:13
T
#define T
Definition
exp.cpp:237
GetTypeReal< std::complex< double > >::type
double type
Definition
macros.h:28
GetTypeReal< std::complex< float > >::type
float type
Definition
macros.h:18
GetTypeReal
Definition
macros.h:7
GetTypeReal::type
T type
Definition
macros.h:8
Generated by
1.9.8