35 #ifndef _BLAZE_MATH_DYNAMICVECTOR_H_
36 #define _BLAZE_MATH_DYNAMICVECTOR_H_
66 template<
typename Type
68 class Rand< DynamicVector<Type,TF> >
74 inline const DynamicVector<Type,TF>
generate(
size_t n )
const;
76 template<
typename Arg >
77 inline const DynamicVector<Type,TF>
generate(
size_t n,
const Arg&
min,
const Arg&
max )
const;
84 inline void randomize( DynamicVector<Type,TF>& vector )
const;
86 template<
typename Arg >
87 inline void randomize( DynamicVector<Type,TF>& vector,
const Arg&
min,
const Arg&
max )
const;
102 template<
typename Type
104 inline const DynamicVector<Type,TF> Rand< DynamicVector<Type,TF> >::generate(
size_t n )
const
106 DynamicVector<Type,TF> vector( n );
123 template<
typename Type
125 template<
typename Arg >
126 inline const DynamicVector<Type,TF>
127 Rand< DynamicVector<Type,TF> >::generate(
size_t n,
const Arg&
min,
const Arg&
max )
const
129 DynamicVector<Type,TF> vector( n );
144 template<
typename Type
146 inline void Rand< DynamicVector<Type,TF> >
::randomize( DynamicVector<Type,TF>& vector )
const
150 const size_t size( vector.size() );
151 for(
size_t i=0UL; i<
size; ++i ) {
168 template<
typename Type
170 template<
typename Arg >
171 inline void Rand< DynamicVector<Type,TF> >
::randomize( DynamicVector<Type,TF>& vector,
172 const Arg&
min,
const Arg&
max )
const
176 const size_t size( vector.size() );
177 for(
size_t i=0UL; i<
size; ++i ) {
Header file for the implementation of a fixed-size vector.
const MT::ElementType max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:994
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector)
Returns the current size/dimension of the vector.
Definition: Vector.h:258
void randomize(T &value)
Randomization of a given variable.
Definition: Random.h:1043
Implementation of a random number generator.
Efficient implementation of an arbitrary sized vector.The DynamicVector class template is the represe...
Definition: DynamicVector.h:160
Header file for the implementation of an arbitrarily sized vector.
DynamicVector< float, false > VecNf
N-dimensional single precision vector.
Definition: DynamicVector.h:197
Header file for the floating point precision of the Blaze library.
void randomize(T &value) const
Randomization of the given variable with a new value in the range .
Definition: Random.h:262
const MT::ElementType min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:947
DynamicVector< double, false > VecNd
N-dimensional double precision vector.
Definition: DynamicVector.h:205
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:222
DynamicVector< real, false > VecN
N-dimensional vector with system-specific precision.
Definition: DynamicVector.h:213