libpnicore
complex_utils.hpp
1 //
2 // (c) Copyright 2011 DESY, Eugen Wintersberger <eugen.wintersberger@desy.de>
3 //
4 // This file is part of libpnicore.
5 //
6 // libpnicore is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // libpnicore is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with libpnicore. If not, see <http://www.gnu.org/licenses/>.
18 //
19 // ============================================================================
20 //
21 // Created on: Sep 9, 2011
22 // Author: Eugen Wintersberger
23 //
24 //
25 
26 #pragma once
27 
28 #include "types.hpp"
29 
30 
31 namespace pni{
32 namespace core{
33 
34  //-------------------------------------------------------------------------
46  bool operator==(const complex32 &a,const complex64 &b);
47 
48  //-------------------------------------------------------------------------
60  bool operator==(const complex32 &a,const complex128 &b);
61 
62  //-------------------------------------------------------------------------
74  bool operator==(const complex64 &a,const complex32 &b);
75 
76  //-------------------------------------------------------------------------
88  bool operator==(const complex64 &a,const complex128 &b);
89 
90  //-------------------------------------------------------------------------
102  bool operator==(const complex128 &a,const complex32 &b);
103 
104  //-------------------------------------------------------------------------
116  bool operator==(const complex128 &a,const complex64 &b);
117 
118  //-------------------------------------------------------------------------
131  bool operator!=(const complex32 &a,const complex64 &b);
132 
133  //-------------------------------------------------------------------------
146  bool operator!=(const complex32 &a,const complex128 &b);
147 
148  //-------------------------------------------------------------------------
161  bool operator!=(const complex64 &a,const complex32 &b);
162 
163  //-------------------------------------------------------------------------
176  bool operator!=(const complex64 &a,const complex128 &b);
177 
178  //-------------------------------------------------------------------------
191  bool operator!=(const complex128 &a,const complex32 &b);
192 
193  //-------------------------------------------------------------------------
206  bool operator!=(const complex128 &a,const complex64 &b);
207 
208 //end of namespace
209 }
210 }
std::complex< float128 > complex128
128Bit complex floating point type
Definition: types/types.hpp:66
std::complex< float32 > complex32
32Bit complex floating point type
Definition: types/types.hpp:62
bool operator==(const complex128 &a, const complex64 &b)
complex number equality operator
bool operator!=(const complex128 &a, const complex64 &b)
complex number inequality operator
Definition: add_op.hpp:29
std::complex< float64 > complex64
64Bit complex floating point type
Definition: types/types.hpp:64