GooFit  v2.1.3
Complex.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <thrust/complex.h>
5 
6 namespace GooFit {
7 
8 using fpcomplex = thrust::complex<fptype>;
9 
10 namespace literals {
11 namespace complex_literals {
12 
13 inline fpcomplex operator"" _i(unsigned long long d) { return {0.0, static_cast<fptype>(d)}; }
14 
15 inline fpcomplex operator"" _i(long double d) { return {0.0, static_cast<fptype>(d)}; }
16 
17 } // namespace complex_literals
18 } // namespace literals
19 
20 } // namespace GooFit
double fptype
thrust::complex< fptype > fpcomplex
Definition: Complex.h:8