35 #ifndef _BLAZE_MATH_UNIFORMVECTOR_H_ 36 #define _BLAZE_MATH_UNIFORMVECTOR_H_ 64 template<
typename Type
66 class Rand< UniformVector<Type,TF> >
72 inline const UniformVector<Type,TF>
generate(
size_t n )
const;
74 template<
typename Arg >
75 inline const UniformVector<Type,TF>
generate(
size_t n,
const Arg&
min,
const Arg&
max )
const;
82 inline void randomize( UniformVector<Type,TF>& vector )
const;
84 template<
typename Arg >
85 inline void randomize( UniformVector<Type,TF>& vector,
const Arg&
min,
const Arg&
max )
const;
100 template<
typename Type
102 inline const UniformVector<Type,TF> Rand< UniformVector<Type,TF> >::generate(
size_t n )
const 104 UniformVector<Type,TF> vector( n );
121 template<
typename Type
123 template<
typename Arg >
124 inline const UniformVector<Type,TF>
125 Rand< UniformVector<Type,TF> >::generate(
size_t n,
const Arg&
min,
const Arg&
max )
const 127 UniformVector<Type,TF> vector( n );
142 template<
typename Type
144 inline void Rand< UniformVector<Type,TF> >
::randomize( UniformVector<Type,TF>& vector )
const 146 vector = rand<Type>();
161 template<
typename Type
163 template<
typename Arg >
164 inline void Rand< UniformVector<Type,TF> >
::randomize( UniformVector<Type,TF>& vector,
165 const Arg&
min,
const Arg&
max )
const 167 vector = rand<Type>(
min,
max );
Header file for basic type definitions.
void randomize(T &&value)
Randomization of a given variable.
Definition: Random.h:929
Implementation of a random number generator.
void randomize(T &value) const
Randomization of the given variable with a new value in the range .
Definition: Random.h:292
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
decltype(auto) min(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise minimum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1162
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1198
Header file for all basic DenseVector functionality.
T generate() const
Generation of a random value in the range .
Definition: Random.h:252