35 #ifndef _BLAZE_MATH_HYBRIDVECTOR_H_ 36 #define _BLAZE_MATH_HYBRIDVECTOR_H_ 66 template<
typename Type
69 class Rand< HybridVector<Type,N,TF> >
75 inline const HybridVector<Type,N,TF>
generate(
size_t n )
const;
77 template<
typename Arg >
78 inline const HybridVector<Type,N,TF>
generate(
size_t n,
const Arg&
min,
const Arg&
max )
const;
85 inline void randomize( HybridVector<Type,N,TF>& vector )
const;
87 template<
typename Arg >
88 inline void randomize( HybridVector<Type,N,TF>& vector,
const Arg&
min,
const Arg&
max )
const;
103 template<
typename Type
106 inline const HybridVector<Type,N,TF> Rand< HybridVector<Type,N,TF> >::generate(
size_t n )
const 108 HybridVector<Type,N,TF> vector( n );
125 template<
typename Type
128 template<
typename Arg >
129 inline const HybridVector<Type,N,TF>
130 Rand< HybridVector<Type,N,TF> >::generate(
size_t n,
const Arg&
min,
const Arg&
max )
const 132 HybridVector<Type,N,TF> vector( n );
147 template<
typename Type
150 inline void Rand< HybridVector<Type,N,TF> >
::randomize( HybridVector<Type,N,TF>& vector )
const 154 for(
size_t i=0UL; i<vector.size(); ++i ) {
171 template<
typename Type
174 template<
typename Arg >
175 inline void Rand< HybridVector<Type,N,TF> >
::randomize( HybridVector<Type,N,TF>& vector,
176 const Arg&
min,
const Arg&
max )
const 180 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:929
Implementation of a random number generator.
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
decltype(auto) min(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise minimum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1147
Header file for the complete ZeroVector implementation.
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1179
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
Header file for the HybridVector class template.