10 #ifndef KOKKOS_RANDOM_MP_VECTOR_HPP
11 #define KOKKOS_RANDOM_MP_VECTOR_HPP
14 #if defined(HAVE_STOKHOS_KOKKOS)
18 #include "Kokkos_Random.hpp"
26 template<
class Generator,
class Storage>
27 struct rand<Generator,Sacado::MP::Vector<Storage> > {
30 typedef rand<Generator,BaseScalar> BaseRand;
32 KOKKOS_INLINE_FUNCTION
35 KOKKOS_INLINE_FUNCTION
36 static Scalar draw(Generator& gen) {
37 return BaseRand::draw(gen);
40 KOKKOS_INLINE_FUNCTION
41 static Scalar draw(Generator& gen,
const Scalar& range) {
42 return BaseRand::draw(gen, range.coeff(0));
45 KOKKOS_INLINE_FUNCTION
47 return BaseRand::draw(gen, start.coeff(0), end.coeff(0));
KOKKOS_INLINE_FUNCTION PCE< Storage > max(const typename PCE< Storage >::value_type &a, const PCE< Storage > &b)