template<class ArrayT>
Makes a new array of given size filled with random number in the range [0. .maxVal) of course when the random seed is set results are reproducable, but beware: if this operation is distributed over parallel nodes different number of nodes yield different results. Definition at line 25 of file MakeRandom.h. References Impala::Core::Array::Pattern::PatInOutOp(). 00026 { 00027 ArrayT* a = new ArrayT(width, height, 0, 0); 00028 Trait::InOutSetRandom<ArrayT> inout(maxVal); 00029 Pattern::PatInOutOp(a, inout); 00030 return a; 00031 }
Here is the call graph for this function:
|