xtensor
Loading...
Searching...
No Matches
xt::math::sign_impl< T > Struct Template Reference

Static Public Member Functions

template<class XT = T>
static constexpr std::enable_if_t< xtl::is_signed< XT >::value, T > run (T x)
template<class XT = T>
static constexpr std::enable_if_t< xtl::is_complex< XT >::value, T > run (T x)
template<class XT = T>
static constexpr std::enable_if_t< std::is_unsigned< XT >::value, T > run (T x)

Detailed Description

template<class T>
struct xt::math::sign_impl< T >

Definition at line 829 of file xmath.hpp.

Member Function Documentation

◆ run() [1/3]

template<class T>
template<class XT = T>
constexpr std::enable_if_t< std::is_unsigned< XT >::value, T > xt::math::sign_impl< T >::run ( T x)
inlinestaticconstexpr

Definition at line 851 of file xmath.hpp.

◆ run() [2/3]

template<class T>
template<class XT = T>
constexpr std::enable_if_t< xtl::is_complex< XT >::value, T > xt::math::sign_impl< T >::run ( T x)
inlinestaticconstexpr

Definition at line 840 of file xmath.hpp.

◆ run() [3/3]

template<class T>
template<class XT = T>
constexpr std::enable_if_t< xtl::is_signed< XT >::value, T > xt::math::sign_impl< T >::run ( T x)
inlinestaticconstexpr

Definition at line 832 of file xmath.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/xtensor/xtensor/include/xtensor/core/xmath.hpp