35 #ifndef _BLAZE_MATH_STATICVECTOR_H_
36 #define _BLAZE_MATH_STATICVECTOR_H_
66 template<
typename Type
69 class Rand< StaticVector<Type,N,TF> >
75 inline const StaticVector<Type,N,TF>
generate()
const;
77 template<
typename Arg >
78 inline const StaticVector<Type,N,TF>
generate(
const Arg&
min,
const Arg&
max )
const;
85 inline void randomize( StaticVector<Type,N,TF>& vector )
const;
87 template<
typename Arg >
88 inline void randomize( StaticVector<Type,N,TF>& vector,
const Arg&
min,
const Arg&
max )
const;
102 template<
typename Type
105 inline const StaticVector<Type,N,TF> Rand< StaticVector<Type,N,TF> >::generate()
const
107 StaticVector<Type,N,TF> vector;
123 template<
typename Type
126 template<
typename Arg >
127 inline const StaticVector<Type,N,TF>
128 Rand< StaticVector<Type,N,TF> >::generate(
const Arg&
min,
const Arg&
max )
const
130 StaticVector<Type,N,TF> vector;
145 template<
typename Type
148 inline void Rand< StaticVector<Type,N,TF> >
::randomize( StaticVector<Type,N,TF>& vector )
const
152 for(
size_t i=0UL; i<N; ++i ) {
169 template<
typename Type
172 template<
typename Arg >
173 inline void Rand< StaticVector<Type,N,TF> >
::randomize( StaticVector<Type,N,TF>& vector,
174 const Arg&
min,
const Arg&
max )
const
178 for(
size_t i=0UL; i<N; ++i ) {
Header file for the implementation of a fixed-size vector.
const MT::ElementType max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1729
void randomize(T &value)
Randomization of a given variable.
Definition: Random.h:1041
StaticVector< float, 2UL, false > Vec2f
2-dimensional single precision vector.
Definition: StaticVector.h:198
StaticVector< real_t, 6UL, false > Vec6
6-dimensional vector with system-specific precision.
Definition: StaticVector.h:262
Implementation of a random number generator.
StaticVector< double, 2UL, false > Vec2d
2-dimensional double precision vector.
Definition: StaticVector.h:206
Efficient implementation of a fixed-sized vector.The StaticVector class template is the representatio...
Definition: Forward.h:61
Header file for the floating point precision of the Blaze library.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
void randomize(T &value) const
Randomization of the given variable with a new value in the range .
Definition: Random.h:260
const MT::ElementType min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1682
StaticVector< double, 3UL, false > Vec3d
3-dimensional double precision vector.
Definition: StaticVector.h:230
StaticVector< real_t, 3UL, false > Vec3
3-dimensional vector with system-specific precision.
Definition: StaticVector.h:238
StaticVector< real_t, 2UL, false > Vec2
2-dimensional vector with system-specific precision.
Definition: StaticVector.h:214
Header file for the complete DynamicVector implementation.
Header file for all basic DenseVector functionality.
T generate() const
Generation of a random value in the range .
Definition: Random.h:220
Header file for the complete StaticMatrix implementation.
StaticVector< float, 3UL, false > Vec3f
3-dimensional single precision vector.
Definition: StaticVector.h:222
StaticVector< float, 6UL, false > Vec6f
6-dimensional single precision vector.
Definition: StaticVector.h:246
StaticVector< double, 6UL, false > Vec6d
6-dimensional double precision vector.
Definition: StaticVector.h:254