35 #ifndef _BLAZE_MATH_HYBRIDMATRIX_H_
36 #define _BLAZE_MATH_HYBRIDMATRIX_H_
66 template<
typename Type
70 class Rand< HybridMatrix<Type,M,N,SO> >
76 inline const HybridMatrix<Type,M,N,SO>
generate(
size_t m,
size_t n )
const;
78 template<
typename Arg >
79 inline const HybridMatrix<Type,M,N,SO>
generate(
size_t m,
size_t n,
const Arg& min,
const Arg& max )
const;
86 inline void randomize( HybridMatrix<Type,M,N,SO>& matrix )
const;
88 template<
typename Arg >
89 inline void randomize( HybridMatrix<Type,M,N,SO>& matrix,
const Arg& min,
const Arg& max )
const;
103 template<
typename Type
107 inline const HybridMatrix<Type,M,N,SO>
108 Rand< HybridMatrix<Type,M,N,SO> >::generate(
size_t m,
size_t n )
const
110 HybridMatrix<Type,M,N,SO> matrix( m, n );
126 template<
typename Type
130 template<
typename Arg >
131 inline const HybridMatrix<Type,M,N,SO>
132 Rand< HybridMatrix<Type,M,N,SO> >::generate(
size_t m,
size_t n,
const Arg& min,
const Arg& max )
const
134 HybridMatrix<Type,M,N,SO> matrix( m, n );
149 template<
typename Type
153 inline void Rand< HybridMatrix<Type,M,N,SO> >
::randomize( HybridMatrix<Type,M,N,SO>& matrix )
const
157 const size_t m( matrix.rows() );
158 const size_t n( matrix.columns() );
160 for(
size_t i=0UL; i<m; ++i ) {
161 for(
size_t j=0UL; j<n; ++j ) {
179 template<
typename Type
183 template<
typename Arg >
184 inline void Rand< HybridMatrix<Type,M,N,SO> >
::randomize( HybridMatrix<Type,M,N,SO>& matrix,
185 const Arg& min,
const Arg& max )
const
189 const size_t m( matrix.rows() );
190 const size_t n( matrix.columns() );
192 for(
size_t i=0UL; i<m; ++i ) {
193 for(
size_t j=0UL; j<n; ++j ) {
Header file for the complete HybridVector implementation.
void randomize(T &value)
Randomization of a given variable.
Definition: Random.h:1043
Implementation of a random number generator.
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 fixed-size matrix.
T generate() const
Generation of a random value in the range .
Definition: Random.h:222
Header file for the DenseMatrix CRTP base class.
Header file for the complete StaticMatrix implementation.