42 #ifndef KOKKOS_RANDOM_MP_VECTOR_HPP
43 #define KOKKOS_RANDOM_MP_VECTOR_HPP
46 #if defined(HAVE_STOKHOS_KOKKOSALGORITHMS)
50 #include "Kokkos_Random.hpp"
58 template<
class Generator,
class Storage>
59 struct rand<Generator,Sacado::MP::Vector<Storage> > {
62 typedef rand<Generator,BaseScalar> BaseRand;
64 KOKKOS_INLINE_FUNCTION
67 KOKKOS_INLINE_FUNCTION
68 static Scalar draw(Generator& gen) {
69 return BaseRand::draw(gen);
72 KOKKOS_INLINE_FUNCTION
73 static Scalar draw(Generator& gen,
const Scalar& range) {
74 return BaseRand::draw(gen, range.coeff(0));
77 KOKKOS_INLINE_FUNCTION
79 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)