예제 #1
0
 void fill_random( const View<Sacado::UQ::PCE<S>**,L,D,M>& a,
                   RandomPool g,
                   const Sacado::UQ::PCE<S>& begin,
                   const Sacado::UQ::PCE<S>& end ) {
   typedef View<Sacado::UQ::PCE<S>**,L,D,M> Vector;
   typename Vector::flat_array_type a_flat = a;
   fill_random( a_flat, g, begin.fastAccessCoeff(0), end.fastAccessCoeff(0) );
 }
예제 #2
0
 void fill_random( const View<Sacado::UQ::PCE<S>**,P...>& a,
                   RandomPool g,
                   const Sacado::UQ::PCE<S>& begin,
                   const Sacado::UQ::PCE<S>& end ) {
   typedef View<Sacado::UQ::PCE<S>**,P...> Vector;
   typename Kokkos::FlatArrayType<Vector>::type a_flat = a;
   fill_random( a_flat, g, begin.fastAccessCoeff(0), end.fastAccessCoeff(0) );
 }