remora::device_traits< gpu_tag > Struct Template Reference

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

Classes

struct  binary_transform_iterator
 
struct  constant_iterator
 
struct  indexed_iterator
 
struct  inv
 
struct  multiply_and_add
 
struct  multiply_assign
 
struct  multiply_scalar
 
struct  one_hot_iterator
 
struct  safe_divide
 
struct  sigmoid
 
struct  soft_plus
 
struct  sqr
 
struct  subrange_iterator
 
struct  transform_iterator
 

Public Types

template<class T >
using add = boost::compute::plus< T >
 
template<class T >
using subtract = boost::compute::minus< T >
 
template<class T >
using multiply = boost::compute::multiplies< T >
 
template<class T >
using divide = boost::compute::divides< T >
 
template<class T >
using pow = boost::compute::pow< T >
 
template<class T >
using log = boost::compute::log< T >
 
template<class T >
using exp = boost::compute::exp< T >
 
template<class T >
using sin = boost::compute::sin< T >
 
template<class T >
using cos = boost::compute::cos< T >
 
template<class T >
using tan = boost::compute::tan< T >
 
template<class T >
using asin = boost::compute::asin< T >
 
template<class T >
using acos = boost::compute::acos< T >
 
template<class T >
using atan = boost::compute::atan< T >
 
template<class T >
using tanh = boost::compute::tanh< T >
 
template<class T >
using sqrt = boost::compute::sqrt< T >
 
template<class T >
using cbrt = boost::compute::cbrt< T >
 
template<class T >
using abs = boost::compute::fabs< T >
 
template<class T >
using erf = boost::compute::erf< T >
 
template<class T >
using erfc = boost::compute::erfc< T >
 
template<class T >
using min = boost::compute::fmin< T >
 
template<class T >
using max = boost::compute::fmax< T >
 

Static Public Member Functions

static queue_type & default_queue ()
 
template<class Expr1 , class Expr2 >
static auto index_add (Expr1 const &expr1, Expr2 const &expr2) -> decltype(boost::compute::plus< std::size_t >()(expr1, expr2))
 
template<class E , class Index >
static gpu::detail::invoked_linearized_matrix< typename E::const_closure_type, Index, typename E::orientation > linearized_matrix_element (matrix_expression< E, gpu_tag > const &e, Index const &index)
 

Detailed Description

template<>
struct remora::device_traits< gpu_tag >

Definition at line 373 of file traits.hpp.

Member Typedef Documentation

◆ abs

template<class T >
using remora::device_traits< gpu_tag >::abs = boost::compute::fabs<T>

Definition at line 513 of file traits.hpp.

◆ acos

template<class T >
using remora::device_traits< gpu_tag >::acos = boost::compute::acos<T>

Definition at line 503 of file traits.hpp.

◆ add

template<class T >
using remora::device_traits< gpu_tag >::add = boost::compute::plus<T>

Definition at line 427 of file traits.hpp.

◆ asin

template<class T >
using remora::device_traits< gpu_tag >::asin = boost::compute::asin<T>

Definition at line 501 of file traits.hpp.

◆ atan

template<class T >
using remora::device_traits< gpu_tag >::atan = boost::compute::atan<T>

Definition at line 505 of file traits.hpp.

◆ cbrt

template<class T >
using remora::device_traits< gpu_tag >::cbrt = boost::compute::cbrt<T>

Definition at line 511 of file traits.hpp.

◆ cos

template<class T >
using remora::device_traits< gpu_tag >::cos = boost::compute::cos<T>

Definition at line 497 of file traits.hpp.

◆ divide

template<class T >
using remora::device_traits< gpu_tag >::divide = boost::compute::divides<T>

Definition at line 433 of file traits.hpp.

◆ erf

template<class T >
using remora::device_traits< gpu_tag >::erf = boost::compute::erf<T>

Definition at line 516 of file traits.hpp.

◆ erfc

template<class T >
using remora::device_traits< gpu_tag >::erfc = boost::compute::erfc<T>

Definition at line 518 of file traits.hpp.

◆ exp

template<class T >
using remora::device_traits< gpu_tag >::exp = boost::compute::exp<T>

Definition at line 493 of file traits.hpp.

◆ log

template<class T >
using remora::device_traits< gpu_tag >::log = boost::compute::log<T>

Definition at line 491 of file traits.hpp.

◆ max

template<class T >
using remora::device_traits< gpu_tag >::max = boost::compute::fmax<T>

Definition at line 569 of file traits.hpp.

◆ min

template<class T >
using remora::device_traits< gpu_tag >::min = boost::compute::fmin<T>

Definition at line 567 of file traits.hpp.

◆ multiply

template<class T >
using remora::device_traits< gpu_tag >::multiply = boost::compute::multiplies<T>

Definition at line 431 of file traits.hpp.

◆ pow

template<class T >
using remora::device_traits< gpu_tag >::pow = boost::compute::pow<T>

Definition at line 435 of file traits.hpp.

◆ sin

template<class T >
using remora::device_traits< gpu_tag >::sin = boost::compute::sin<T>

Definition at line 495 of file traits.hpp.

◆ sqrt

template<class T >
using remora::device_traits< gpu_tag >::sqrt = boost::compute::sqrt<T>

Definition at line 509 of file traits.hpp.

◆ subtract

template<class T >
using remora::device_traits< gpu_tag >::subtract = boost::compute::minus<T>

Definition at line 429 of file traits.hpp.

◆ tan

template<class T >
using remora::device_traits< gpu_tag >::tan = boost::compute::tan<T>

Definition at line 499 of file traits.hpp.

◆ tanh

template<class T >
using remora::device_traits< gpu_tag >::tanh = boost::compute::tanh<T>

Definition at line 507 of file traits.hpp.

Member Function Documentation

◆ default_queue()

static queue_type& remora::device_traits< gpu_tag >::default_queue ( )
inlinestatic

Definition at line 376 of file traits.hpp.

◆ index_add()

template<class Expr1 , class Expr2 >
static auto remora::device_traits< gpu_tag >::index_add ( Expr1 const &  expr1,
Expr2 const &  expr2 
) -> decltype(boost::compute::plus<std::size_t>()(expr1,expr2))
inlinestatic

Definition at line 382 of file traits.hpp.

◆ linearized_matrix_element()

template<class E , class Index >
static gpu::detail::invoked_linearized_matrix<typename E::const_closure_type,Index, typename E::orientation> remora::device_traits< gpu_tag >::linearized_matrix_element ( matrix_expression< E, gpu_tag > const &  e,
Index const &  index 
)
inlinestatic

Definition at line 388 of file traits.hpp.


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