35 #ifndef _BLAZE_MATH_CUSTOMVECTOR_H_ 36 #define _BLAZE_MATH_CUSTOMVECTOR_H_ 67 template<
typename Type
72 class Rand< CustomVector<Type,AF,PF,TF,RT> >
78 inline void randomize( CustomVector<Type,AF,PF,TF,RT>& vector )
const;
80 template<
typename Arg >
81 inline void randomize( CustomVector<Type,AF,PF,TF,RT>& vector,
const Arg&
min,
const Arg&
max )
const;
96 template<
typename Type
101 inline void Rand< CustomVector<Type,AF,PF,TF,RT> >
::randomize( CustomVector<Type,AF,PF,TF,RT>& vector )
const 105 const size_t size( vector.size() );
106 for(
size_t i=0UL; i<
size; ++i ) {
123 template<
typename Type
128 template<
typename Arg >
129 inline void Rand< CustomVector<Type,AF,PF,TF,RT> >
::randomize( CustomVector<Type,AF,PF,TF,RT>& vector,
130 const Arg&
min,
const Arg&
max )
const 134 const size_t size( vector.size() );
135 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 implementation of a customizable vector.
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.