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
const IndexType const IndexType const IndexType const IndexType const ValueType const ValueType * x
static void apply(const value_type &alpha, vector_type &x, const value_type &beta, const vector_type &y)
Top-level namespace for Stokhos classes and functions.
vector_type::execution_space execution_space
KOKKOS_INLINE_FUNCTION void operator()(const size_type iRow) const
execution_space::size_type size_type
Update(const value_type &alpha, vector_type &x, const value_type &beta, const vector_type &y)
const IndexType const IndexType const IndexType const IndexType const ValueType const ValueType ValueType * y
void update(const ValueType &alpha, VectorType &x, const ValueType &beta, const VectorType &y)