35 #ifndef _BLAZE_MATH_UNIFORMMATRIX_H_ 36 #define _BLAZE_MATH_UNIFORMMATRIX_H_ 64 template<
typename Type
66 class Rand< UniformMatrix<Type,SO> >
72 inline const UniformMatrix<Type,SO>
generate(
size_t m,
size_t n )
const;
74 template<
typename Arg >
75 inline const UniformMatrix<Type,SO>
generate(
size_t m,
size_t n,
const Arg&
min,
const Arg&
max )
const;
82 inline void randomize( UniformMatrix<Type,SO>& matrix )
const;
84 template<
typename Arg >
85 inline void randomize( UniformMatrix<Type,SO>& matrix,
const Arg&
min,
const Arg&
max )
const;
101 template<
typename Type
103 inline const UniformMatrix<Type,SO>
104 Rand< UniformMatrix<Type,SO> >::generate(
size_t m,
size_t n )
const 106 UniformMatrix<Type,SO> matrix( m, n );
124 template<
typename Type
126 template<
typename Arg >
127 inline const UniformMatrix<Type,SO>
128 Rand< UniformMatrix<Type,SO> >::generate(
size_t m,
size_t n,
const Arg&
min,
const Arg&
max )
const 130 UniformMatrix<Type,SO> matrix( m, n );
145 template<
typename Type
147 inline void Rand< UniformMatrix<Type,SO> >
::randomize( UniformMatrix<Type,SO>& matrix )
const 149 matrix = rand<Type>();
164 template<
typename Type
166 template<
typename Arg >
167 inline void Rand< UniformMatrix<Type,SO> >
::randomize( UniformMatrix<Type,SO>& matrix,
168 const Arg&
min,
const Arg&
max )
const 170 matrix = rand<Type>(
min,
max );
Header file for basic type definitions.
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
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
T generate() const
Generation of a random value in the range .
Definition: Random.h:252
Header file for all basic DenseMatrix functionality.