35#ifndef _BLAZE_MATH_DYNAMICVECTOR_H_
36#define _BLAZE_MATH_DYNAMICVECTOR_H_
66template<
typename Type
69class Rand< DynamicVector<Type,TF,Tag> >
78 inline const DynamicVector<Type,TF,Tag>
generate(
size_t n )
const
80 DynamicVector<Type,TF,Tag> vector( n );
94 template<
typename Arg >
95 inline const DynamicVector<Type,TF,Tag>
generate(
size_t n,
const Arg&
min,
const Arg&
max )
const
97 DynamicVector<Type,TF,Tag> vector( n );
109 inline void randomize( DynamicVector<Type,TF,Tag>& vector )
const
113 const size_t size( vector.size() );
114 for(
size_t i=0UL; i<
size; ++i ) {
128 template<
typename Arg >
129 inline void randomize( DynamicVector<Type,TF,Tag>& 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 all basic DenseVector functionality.
Header file for the complete DynamicMatrix implementation.
Header file for the complete ZeroVector implementation.
Header file for the implementation of an arbitrarily sized vector.
Header file for the implementation of a fixed-size vector.
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:1339
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:1375
decltype(auto) generate(size_t m, size_t n, OP op)
Generates a new dense matrix filled via the given custom binary operation.
Definition: DMatGenExpr.h:675
constexpr size_t size(const Matrix< MT, SO > &matrix) noexcept
Returns the total number of elements of the matrix.
Definition: Matrix.h:676
void randomize(T &&value)
Randomization of a given variable.
Definition: Random.h:626
Implementation of a random number generator.