35 #ifndef _BLAZE_MATH_CUSTOMVECTOR_H_ 36 #define _BLAZE_MATH_CUSTOMVECTOR_H_ 66 template<
typename Type
70 class Rand< CustomVector<Type,AF,PF,TF> >
76 inline void randomize( CustomVector<Type,AF,PF,TF>& vector )
const;
78 template<
typename Arg >
79 inline void randomize( CustomVector<Type,AF,PF,TF>& vector,
const Arg&
min,
const Arg&
max )
const;
94 template<
typename Type
98 inline void Rand< CustomVector<Type,AF,PF,TF> >
::randomize( CustomVector<Type,AF,PF,TF>& vector )
const 102 const size_t size( vector.size() );
103 for(
size_t i=0UL; i<
size; ++i ) {
120 template<
typename Type
124 template<
typename Arg >
125 inline void Rand< CustomVector<Type,AF,PF,TF> >
::randomize( CustomVector<Type,AF,PF,TF>& vector,
126 const Arg&
min,
const Arg&
max )
const 130 const size_t size( vector.size() );
131 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:927
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1762
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:1809
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:290
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the implementation of a customizable vector.
Header file for the complete DynamicMatrix implementation.
Header file for all basic DenseVector functionality.