35 #ifndef _BLAZE_MATH_STATICMATRIX_H_
36 #define _BLAZE_MATH_STATICMATRIX_H_
66 template<
typename Type
70 class Rand< StaticMatrix<Type,M,N,SO> >
76 inline const StaticMatrix<Type,M,N,SO>
generate()
const;
78 template<
typename Arg >
79 inline const StaticMatrix<Type,M,N,SO>
generate(
const Arg& min,
const Arg& max )
const;
86 inline void randomize( StaticMatrix<Type,M,N,SO>& matrix )
const;
88 template<
typename Arg >
89 inline void randomize( StaticMatrix<Type,M,N,SO>& matrix,
const Arg& min,
const Arg& max )
const;
103 template<
typename Type
107 inline const StaticMatrix<Type,M,N,SO> Rand< StaticMatrix<Type,M,N,SO> >::generate()
const
109 StaticMatrix<Type,M,N,SO> matrix;
125 template<
typename Type
129 template<
typename Arg >
130 inline const StaticMatrix<Type,M,N,SO>
131 Rand< StaticMatrix<Type,M,N,SO> >::generate(
const Arg& min,
const Arg& max )
const
133 StaticMatrix<Type,M,N,SO> matrix;
148 template<
typename Type
152 inline void Rand< StaticMatrix<Type,M,N,SO> >
::randomize( StaticMatrix<Type,M,N,SO>& matrix )
const
156 for(
size_t i=0UL; i<M; ++i ) {
157 for(
size_t j=0UL; j<N; ++j ) {
175 template<
typename Type
179 template<
typename Arg >
180 inline void Rand< StaticMatrix<Type,M,N,SO> >
::randomize( StaticMatrix<Type,M,N,SO>& matrix,
181 const Arg& min,
const Arg& max )
const
185 for(
size_t i=0UL; i<M; ++i ) {
186 for(
size_t j=0UL; j<N; ++j ) {
StaticMatrix< real, 5UL, 5UL, false > Mat5x5
5x5 matrix with system-specific precision.
Definition: StaticMatrix.h:295
StaticMatrix< real, 2UL, 2UL, false > Mat2x2
2x2 matrix with system-specific precision.
Definition: StaticMatrix.h:223
StaticMatrix< double, 6UL, 6UL, false > Mat6x6d
6x6 double precision matrix.
Definition: StaticMatrix.h:311
void randomize(T &value)
Randomization of a given variable.
Definition: Random.h:1043
StaticMatrix< real, 3UL, 3UL, false > Mat3x3
3x3 matrix with system-specific precision.
Definition: StaticMatrix.h:247
Implementation of a random number generator.
StaticMatrix< double, 3UL, 3UL, false > Mat3x3d
3x3 double precision matrix.
Definition: StaticMatrix.h:239
StaticMatrix< double, 5UL, 5UL, false > Mat5x5d
5x5 double precision matrix.
Definition: StaticMatrix.h:287
StaticMatrix< float, 5UL, 5UL, false > Mat5x5f
5x5 single precision matrix.
Definition: StaticMatrix.h:279
Header file for the floating point precision of the Blaze library.
StaticMatrix< float, 2UL, 2UL, false > Mat2x2f
2x2 single precision matrix.
Definition: StaticMatrix.h:207
void randomize(T &value) const
Randomization of the given variable with a new value in the range .
Definition: Random.h:262
StaticMatrix< real, 4UL, 4UL, false > Mat4x4
4x4 matrix with system-specific precision.
Definition: StaticMatrix.h:271
Efficient implementation of a fixed-sized matrix.The StaticMatrix class template is the representatio...
Definition: Forward.h:50
Header file for the implementation of a fixed-size matrix.
StaticMatrix< float, 3UL, 3UL, false > Mat3x3f
3x3 single precision matrix.
Definition: StaticMatrix.h:231
Header file for the complete DynamicMatrix implementation.
Header file for the complete StaticVector implementation.
StaticMatrix< float, 4UL, 4UL, false > Mat4x4f
4x4 single precision matrix.
Definition: StaticMatrix.h:255
T generate() const
Generation of a random value in the range .
Definition: Random.h:222
Header file for the DenseMatrix CRTP base class.
StaticMatrix< double, 2UL, 2UL, false > Mat2x2d
2x2 double precision matrix.
Definition: StaticMatrix.h:215
StaticMatrix< double, 4UL, 4UL, false > Mat4x4d
4x4 double precision matrix.
Definition: StaticMatrix.h:263
StaticMatrix< real, 6UL, 6UL, false > Mat6x6
6x6 matrix with system-specific precision.
Definition: StaticMatrix.h:319
StaticMatrix< float, 6UL, 6UL, false > Mat6x6f
6x6 single precision matrix.
Definition: StaticMatrix.h:303