Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class ArrayT>
ArrayT* Impala::Core::Array::MakeRandom ( Int64  width,
Int64  height,
typename ArrayT::StorType  maxVal 
) [inline]

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:


Generated on Fri Mar 19 10:57:42 2010 for ImpalaSrc by  doxygen 1.5.1