35 #ifndef _BLAZE_MATH_DYNAMICVECTOR_H_ 36 #define _BLAZE_MATH_DYNAMICVECTOR_H_ 65 template<
typename Type
67 class Rand< DynamicVector<Type,TF> >
73 inline const DynamicVector<Type,TF>
generate(
size_t n )
const;
75 template<
typename Arg >
76 inline const DynamicVector<Type,TF>
generate(
size_t n,
const Arg&
min,
const Arg&
max )
const;
83 inline void randomize( DynamicVector<Type,TF>& vector )
const;
85 template<
typename Arg >
86 inline void randomize( DynamicVector<Type,TF>& vector,
const Arg&
min,
const Arg&
max )
const;
101 template<
typename Type
103 inline const DynamicVector<Type,TF> Rand< DynamicVector<Type,TF> >
::generate(
size_t n )
const 105 DynamicVector<Type,TF> vector( n );
122 template<
typename Type
124 template<
typename Arg >
125 inline const DynamicVector<Type,TF>
126 Rand< DynamicVector<Type,TF> >
::generate(
size_t n,
const Arg&
min,
const Arg&
max )
const 128 DynamicVector<Type,TF> vector( n );
143 template<
typename Type
145 inline void Rand< DynamicVector<Type,TF> >
::randomize( DynamicVector<Type,TF>& vector )
const 149 const size_t size( vector.size() );
150 for(
size_t i=0UL; i<
size; ++i ) {
167 template<
typename Type
169 template<
typename Arg >
170 inline void Rand< DynamicVector<Type,TF> >
::randomize( DynamicVector<Type,TF>& vector,
171 const Arg&
min,
const Arg&
max )
const 175 const size_t size( vector.size() );
176 for(
size_t i=0UL; i<
size; ++i ) {
Header file for the implementation of a fixed-size vector.
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector) noexcept
Returns the current size/dimension of the vector.
Definition: Vector.h:265
void randomize(T &&value)
Randomization of a given variable.
Definition: Random.h:929
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1903
Implementation of a random number generator.
const ElementType_< MT > max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1950
Header file for the implementation of an arbitrarily sized vector.
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
Header file for the complete DynamicMatrix implementation.
Header file for all basic DenseVector functionality.
T generate() const
Generation of a random value in the range .
Definition: Random.h:252