Eigen::internal::void_helper Struct Reference

#include <gpu_test_helper.h>

Classes

struct  Void
 

Public Types

template<typename T >
using ReturnType = typename std::conditional< std::is_same< T, void >::value, Void, T >::type
 

Static Public Member Functions

template<typename Func , typename... Args>
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC auto call (Func &&func, Args &&... args) -> std::enable_if_t<!std::is_same< decltype(func(args...)), void >::value, decltype(func(args...))>
 
template<typename Func , typename... Args>
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC auto call (Func &&func, Args &&... args) -> std::enable_if_t< std::is_same< decltype(func(args...)), void >::value, Void >
 
template<typename T >
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC std::enable_if_t<!std::is_same< typename std::decay< T >::type, Void >::value, Trestore (T &&val)
 
template<typename T = void>
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC void restore (const Void &)
 

Member Typedef Documentation

◆ ReturnType

template<typename T >
using Eigen::internal::void_helper::ReturnType = typename std::conditional<std::is_same<T, void>::value, Void, T>::type

Member Function Documentation

◆ call() [1/2]

template<typename Func , typename... Args>
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC auto Eigen::internal::void_helper::call ( Func &&  func,
Args &&...  args 
) -> std::enable_if_t<std::is_same<decltype(func(args...)), void>::value, Void>
inlinestatic
100  {
101  func(std::forward<Args>(args)...);
102  return Void{};
103  }
func(actual_m, actual_n, a, *lda, actual_b, 1, actual_c, 1, alpha)
args
Definition: compute_granudrum_aor.py:143

References compute_granudrum_aor::args, and func().

◆ call() [2/2]

template<typename Func , typename... Args>
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC auto Eigen::internal::void_helper::call ( Func &&  func,
Args &&...  args 
) -> std::enable_if_t<!std::is_same<decltype(func(args...)), void>::value, decltype(func(args...))>
inlinestatic
93  {
94  return func(std::forward<Args>(args)...);
95  }

References compute_granudrum_aor::args, and func().

◆ restore() [1/2]

template<typename T = void>
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC void Eigen::internal::void_helper::restore ( const Void )
inlinestatic
115 {}

◆ restore() [2/2]

template<typename T >
static EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC std::enable_if_t<!std::is_same<typename std::decay<T>::type, Void>::value, T> Eigen::internal::void_helper::restore ( T &&  val)
inlinestatic
109  {
110  return val;
111  }
val
Definition: calibrate.py:119

References calibrate::val.


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