SyTen
abs_real_imag_conj.h File Reference

Implementations of abs(), real(), conj() and imag(). More...

#include <cmath>
#include <complex>
#include <iostream>
#include "inc/util/types.h"
+ Include dependency graph for abs_real_imag_conj.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  syten
 Syten namespace.
 

Functions

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...
 

Detailed Description

Implementations of abs(), real(), conj() and imag().