Implementations of abs(), real(), conj() and imag().
More...
#include <cmath>
#include <complex>
#include <iostream>
#include "inc/util/types.h"
|
namespace | syten |
| Syten namespace.
|
|
|
template<typename T > |
constexpr T | syten::closest_power_two (T const &in) |
| Returns an power-of-two approximation to in More...
|
|
template<typename T , typename std::enable_if<(is_number< T >::value &&std::is_same< T, typename ScalarBase< T >::type >::value), int >::type = 0> |
constexpr T const & | syten::conj (T const &x) |
| Complex conjugate of non-complex types, returns the argument. More...
|
|
template<typename T , typename std::enable_if<(is_number< T >::value &&std::is_same< T, typename ScalarBase< T >::type >::value), int >::type = 0> |
constexpr T | syten::imag (T const &) |
| Imaginary part of non-complex types, returns zero. More...
|
|
template<typename T , typename std::enable_if<(is_number< T >::value &&std::is_same< T, typename ScalarBase< T >::type >::value), int >::type = 0> |
constexpr T const & | syten::real (T const &x) |
| Real part of non-complex types, returns the argument. More...
|
|
Implementations of abs(), real(), conj() and imag().