42 #ifndef STOKHOS_UPDATE_HPP
43 #define STOKHOS_UPDATE_HPP
47 template<
typename ValueType,
typename VectorType >
54 typedef typename execution_space::size_type
size_type;
72 KOKKOS_INLINE_FUNCTION
81 const size_t row_count = x.extent(0);
82 Kokkos::parallel_for( row_count ,
Update(alpha,x,beta,y) );
86 template <
typename ValueType,
typename VectorType>
87 void update(
const ValueType& alpha, VectorType& x,
88 const ValueType& beta,
const VectorType& y)
Kokkos::DefaultExecutionSpace execution_space
static void apply(const value_type &alpha, vector_type &x, const value_type &beta, const vector_type &y)
KOKKOS_INLINE_FUNCTION void operator()(const size_type iRow) const
vector_type::execution_space execution_space
execution_space::size_type size_type
Update(const value_type &alpha, vector_type &x, const value_type &beta, const vector_type &y)
void update(const ValueType &alpha, VectorType &x, const ValueType &beta, const VectorType &y)