PARALUTION  1.0.0
PARALUTION
math_functions.hpp
Go to the documentation of this file.
1 #ifndef PARALUTION_UTILS_MATH_FUNCTIONS_HPP_
2 #define PARALUTION_UTILS_MATH_FUNCTIONS_HPP_
3 
4 #include <complex>
5 
6 namespace paralution {
7 
9 float paralution_abs(const float val);
11 double paralution_abs(const double val);
13 float paralution_abs(const std::complex<float> val);
15 double paralution_abs(const std::complex<double> val);
17 int paralution_abs(const int val);
18 
20 template <typename ValueType>
21 bool operator<(const std::complex<ValueType> &lhs, const std::complex<ValueType> &rhs);
23 template <typename ValueType>
24 bool operator>(const std::complex<ValueType> &lhs, const std::complex<ValueType> &rhs);
26 template <typename ValueType>
27 bool operator<=(const std::complex<ValueType> &lhs, const std::complex<ValueType> &rhs);
29 template <typename ValueType>
30 bool operator>=(const std::complex<ValueType> &lhs, const std::complex<ValueType> &rhs);
31 
32 }
33 
34 #endif // PARALUTION_UTILS_MATH_FUNCTIONS_HPP_
bool operator>=(const std::complex< ValueType > &lhs, const std::complex< ValueType > &rhs)
Overloaded >= operator for complex numbers.
Definition: math_functions.cpp:76
bool operator>(const std::complex< ValueType > &lhs, const std::complex< ValueType > &rhs)
Overloaded > operator for complex numbers.
Definition: math_functions.cpp:52
float paralution_abs(const float val)
Return absolute float value.
Definition: math_functions.cpp:9
Definition: backend_manager.cpp:43