10 #ifndef STOKHOS_UPDATE_HPP
11 #define STOKHOS_UPDATE_HPP
15 template<
typename ValueType,
typename VectorType >
22 typedef typename execution_space::size_type
size_type;
40 KOKKOS_INLINE_FUNCTION
49 const size_t row_count = x.extent(0);
50 Kokkos::parallel_for( row_count ,
Update(alpha,x,beta,y) );
54 template <
typename ValueType,
typename VectorType>
55 void update(
const ValueType& alpha, VectorType& x,
56 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)