35 #ifndef _BLAZE_MATH_HYBRIDVECTOR_H_ 36 #define _BLAZE_MATH_HYBRIDVECTOR_H_ 65 template<
typename Type
68 class Rand< HybridVector<Type,N,TF> >
74 inline const HybridVector<Type,N,TF>
generate(
size_t n )
const;
76 template<
typename Arg >
77 inline const HybridVector<Type,N,TF>
generate(
size_t n,
const Arg&
min,
const Arg&
max )
const;
84 inline void randomize( HybridVector<Type,N,TF>& vector )
const;
86 template<
typename Arg >
87 inline void randomize( HybridVector<Type,N,TF>& vector,
const Arg&
min,
const Arg&
max )
const;
102 template<
typename Type
105 inline const HybridVector<Type,N,TF> Rand< HybridVector<Type,N,TF> >
::generate(
size_t n )
const 107 HybridVector<Type,N,TF> vector( n );
124 template<
typename Type
127 template<
typename Arg >
128 inline const HybridVector<Type,N,TF>
129 Rand< HybridVector<Type,N,TF> >
::generate(
size_t n,
const Arg&
min,
const Arg&
max )
const 131 HybridVector<Type,N,TF> vector( n );
146 template<
typename Type
149 inline void Rand< HybridVector<Type,N,TF> >
::randomize( HybridVector<Type,N,TF>& vector )
const 153 for(
size_t i=0UL; i<vector.size(); ++i ) {
170 template<
typename Type
173 template<
typename Arg >
174 inline void Rand< HybridVector<Type,N,TF> >
::randomize( HybridVector<Type,N,TF>& vector,
175 const Arg&
min,
const Arg&
max )
const 179 for(
size_t i=0UL; i<vector.size(); ++i ) {
Header file for the implementation of a fixed-size vector.
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
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 complete DynamicMatrix implementation.
Header file for all basic DenseVector functionality.
T generate() const
Generation of a random value in the range .
Definition: Random.h:250
Header file for the HybridVector class template.