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.
const MT::ElementType max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1729
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector)
Returns the current size/dimension of the vector.
Definition: Vector.h:252
void randomize(T &value)
Randomization of a given variable.
Definition: Random.h:1041
Implementation of a random number generator.
Header file for the implementation of an arbitrarily sized vector.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
void randomize(T &value) const
Randomization of the given variable with a new value in the range .
Definition: Random.h:260
const MT::ElementType min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1682
Header file for the implementation of a customizable vector.
Header file for the complete DynamicMatrix implementation.
Header file for all basic DenseVector functionality.