OpenKalman
Static Public Attributes | List of all members
OpenKalman::interface::number_traits< T, typename > Struct Template Reference

Static Public Attributes

static constexpr bool is_specialized = false
 This value is true for all T for which there exists a specialization of numeric_traits. More...
 
static constexpr bool is_complex = false
 Whether T is a complex number.
 
static constexpr auto real = [](T) { throw std::logic_error("Interface not implemented"); }
 A callable object that returns the real part of the argument of type T.
 
static constexpr auto imag = [](T) { throw std::logic_error("Interface not implemented"); }
 A callable object that returns the real part of the argument of type T.
 
static constexpr auto make_complex = [](T re, T im) { throw std::logic_error("Interface not implemented"); }
 A callable object that makes a complex number consistent with T from two real arguments. More...
 

Member Data Documentation

◆ is_specialized

template<typename T, typename = void>
constexpr bool OpenKalman::interface::number_traits< T, typename >::is_specialized = false
static

This value is true for all T for which there exists a specialization of numeric_traits.

T is considered to be a number if and only if this is true.

◆ make_complex

template<typename T, typename = void>
constexpr auto OpenKalman::interface::number_traits< T, typename >::make_complex = [](T re, T im) { throw std::logic_error("Interface not implemented"); }
static

A callable object that makes a complex number consistent with T from two real arguments.

Parameters
reReal part
imImaginary part

The documentation for this struct was generated from the following file: