38 for (
direction cmpt=0; cmpt<pTraits<Type>::nComponents; ++cmpt)
40 value.component(cmpt) = scalar01();
51 for (
direction cmpt=0; cmpt<pTraits<Type>::nComponents; ++cmpt)
53 value.component(cmpt) = GaussNormal<scalar>();
64 for (
direction cmpt=0; cmpt<pTraits<Type>::nComponents; ++cmpt)
66 value.component(cmpt) +=
67 scalar01()*(end.component(cmpt) - start.component(cmpt));
77 value = sample01<Type>();
84 for (label posi = values.size()-1; posi > 0; --posi)
86 const label i = position<label>(0, posi);
99 value = sample01<Type>();
115 value = GaussNormal<Type>();
131 value = position<Type>(start, end);
147 value = sample01<Type>();
static void scatter(const List< commsStruct > &comms, T &value, const int tag, const label comm)
Broadcast data: Distribute without modification.
void globalRandomise01(Type &value)
Randomise value in the range 0-1.
Type sample01()
Return a sample whose components lie in the range [0,1].
Type globalSample01()
Return a sample whose components lie in the range [0,1].
void shuffle(UList< Type > &values)
Shuffle the values in the list.
Type globalPosition(const Type &start, const Type &end)
Return a sample on the interval [start,end].
void randomise01(Type &value)
Randomise value in the range [0,1].
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
splitCell * master() const
void Swap(DynamicList< T, SizeMinA > &a, DynamicList< T, SizeMinB > &b)