diff options
author | Deanna Hood <deanna.m.hood@gmail.com> | 2015-03-17 02:36:07 +1000 |
---|---|---|
committer | Deanna Hood <deanna.m.hood@gmail.com> | 2015-03-17 02:36:07 +1000 |
commit | 1d76ceab551e1918bb049f473fc9a57f90dee028 (patch) | |
tree | 5035d650cd5564d2cbc9b18d2a92467d0bf5f0b0 /Eigen/src/Core | |
parent | 717b7954cec7b1004dbb329fd33443f73aac5c80 (diff) |
Remove floor, ceil, round for complex numbers
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index a2c9d16f9..fceb29e1a 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -786,14 +786,6 @@ T (round)(const T& x) template<typename T> EIGEN_DEVICE_FUNC -std::complex<T> (round)(const std::complex<T>& x) -{ - using numext::round; - return std::complex<T>(round(real(x)), round(imag(x))); -} - -template<typename T> -EIGEN_DEVICE_FUNC T (floor)(const T& x) { using std::floor; @@ -802,32 +794,12 @@ T (floor)(const T& x) template<typename T> EIGEN_DEVICE_FUNC -std::complex<T> (floor)(const std::complex<T>& x) -{ - using std::real; - using std::imag; - using std::floor; - return std::complex<T>(floor(real(x)), floor(imag(x))); -} - -template<typename T> -EIGEN_DEVICE_FUNC T (ceil)(const T& x) { using std::ceil; return ceil(x); } -template<typename T> -EIGEN_DEVICE_FUNC -std::complex<T> (ceil)(const std::complex<T>& x) -{ - using std::real; - using std::imag; - using std::ceil; - return std::complex<T>(ceil(real(x)), ceil(imag(x))); -} - // Log base 2 for 32 bits positive integers. // Conveniently returns 0 for x==0. inline int log2(int x) |