remora::device_traits< cpu_tag >::safe_divide< T > Struct Template Reference

#include <shark/LinAlg/BLAS/cpu/traits.hpp>

Public Member Functions

 safe_divide (T defaultValue)
 
operator() (T x, T y) const
 

Static Public Attributes

static const bool left_zero_remains = true
 
static const bool right_zero_remains = false
 

Detailed Description

template<>
template<class T>
struct remora::device_traits< cpu_tag >::safe_divide< T >

Definition at line 196 of file traits.hpp.

Constructor & Destructor Documentation

◆ safe_divide()

template<class T >
remora::device_traits< cpu_tag >::safe_divide< T >::safe_divide ( defaultValue)
inline

Definition at line 199 of file traits.hpp.

Member Function Documentation

◆ operator()()

template<class T >
T remora::device_traits< cpu_tag >::safe_divide< T >::operator() ( x,
y 
) const
inline

Definition at line 201 of file traits.hpp.

Member Data Documentation

◆ left_zero_remains

template<class T >
const bool remora::device_traits< cpu_tag >::safe_divide< T >::left_zero_remains = true
static

Definition at line 197 of file traits.hpp.

◆ right_zero_remains

template<class T >
const bool remora::device_traits< cpu_tag >::safe_divide< T >::right_zero_remains = false
static

Definition at line 198 of file traits.hpp.


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