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.
void randomize(T &&value)
Randomization of a given variable.
Definition: Random.h:929
Implementation of a random number generator.
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: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:1162
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:1198
Header file for the complete DynamicMatrix implementation.
constexpr size_t size(const Matrix< MT, SO > &matrix) noexcept
Returns the total number of elements of the matrix.
Definition: Matrix.h:530
Header file for all basic DenseVector functionality.
T generate() const
Generation of a random value in the range .
Definition: Random.h:252