35 #ifndef _BLAZE_MATH_DYNAMICMATRIX_H_
36 #define _BLAZE_MATH_DYNAMICMATRIX_H_
65 template<
typename Type
67 class Rand< DynamicMatrix<Type,SO> >
73 inline const DynamicMatrix<Type,SO>
generate(
size_t m,
size_t n )
const;
75 template<
typename Arg >
76 inline const DynamicMatrix<Type,SO>
generate(
size_t m,
size_t n,
const Arg& min,
const Arg& max )
const;
83 inline void randomize( DynamicMatrix<Type,SO>& matrix )
const;
85 template<
typename Arg >
86 inline void randomize( DynamicMatrix<Type,SO>& matrix,
const Arg& min,
const Arg& max )
const;
102 template<
typename Type
104 inline const DynamicMatrix<Type,SO>
105 Rand< DynamicMatrix<Type,SO> >::generate(
size_t m,
size_t n )
const
107 DynamicMatrix<Type,SO> matrix( m, n );
125 template<
typename Type
127 template<
typename Arg >
128 inline const DynamicMatrix<Type,SO>
129 Rand< DynamicMatrix<Type,SO> >::generate(
size_t m,
size_t n,
const Arg& min,
const Arg& max )
const
131 DynamicMatrix<Type,SO> matrix( m, n );
146 template<
typename Type
148 inline void Rand< DynamicMatrix<Type,SO> >
::randomize( DynamicMatrix<Type,SO>& matrix )
const
152 const size_t m( matrix.rows() );
153 const size_t n( matrix.columns() );
155 for(
size_t i=0UL; i<m; ++i ) {
156 for(
size_t j=0UL; j<n; ++j ) {
174 template<
typename Type
176 template<
typename Arg >
177 inline void Rand< DynamicMatrix<Type,SO> >
::randomize( DynamicMatrix<Type,SO>& matrix,
178 const Arg& min,
const Arg& max )
const
182 const size_t m( matrix.rows() );
183 const size_t n( matrix.columns() );
185 for(
size_t i=0UL; i<m; ++i ) {
186 for(
size_t j=0UL; j<n; ++j ) {
void randomize(T &value)
Randomization of a given variable.
Definition: Random.h:1043
Implementation of a random number generator.
Efficient implementation of a dynamic matrix.The DynamicMatrix class template is the representation ...
Definition: DynamicMatrix.h:176
DynamicMatrix< double, false > MatMxNd
MxN double precision matrix.
Definition: DynamicMatrix.h:215
Header file for the floating point precision of the Blaze library.
void randomize(T &value) const
Randomization of the given variable with a new value in the range .
Definition: Random.h:262
Header file for the implementation of a dynamic MxN matrix.
DynamicMatrix< real, false > MatMxN
MxN matrix with system-specific precision.
Definition: DynamicMatrix.h:223
Header file for the complete DynamicVector implementation.
DynamicMatrix< float, false > MatMxNf
MxN single precision matrix.
Definition: DynamicMatrix.h:207
T generate() const
Generation of a random value in the range .
Definition: Random.h:222
Header file for the DenseMatrix CRTP base class.