ZeroVector.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_ZEROVECTOR_H_
36 #define _BLAZE_MATH_ZEROVECTOR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
45 #include <blaze/math/ZeroMatrix.h>
46 #include <blaze/util/Random.h>
47 #include <blaze/util/Types.h>
48 
49 
50 namespace blaze {
51 
52 //=================================================================================================
53 //
54 // RAND SPECIALIZATION
55 //
56 //=================================================================================================
57 
58 //*************************************************************************************************
65 template< typename Type // Data type of the vector
66  , bool TF > // Transpose flag
67 class Rand< ZeroVector<Type,TF> >
68 {
69  public:
70  //**Generate functions**************************************************************************
73  inline const ZeroVector<Type,TF> generate( size_t size ) const;
75  //**********************************************************************************************
76 };
78 //*************************************************************************************************
79 
80 
81 //*************************************************************************************************
88 template< typename Type // Data type of the vector
89  , bool TF > // Transpose flag
90 inline const ZeroVector<Type,TF>
91  Rand< ZeroVector<Type,TF> >::generate( size_t size ) const
92 {
93  return ZeroVector<Type,TF>( size );
94 }
96 //*************************************************************************************************
97 
98 } // namespace blaze
99 
100 #endif
Header file for basic type definitions.
Implementation of a random number generator.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the complete CompressedVector implementation.
constexpr size_t size(const Matrix< MT, SO > &matrix) noexcept
Returns the total number of elements of the matrix.
Definition: Matrix.h:530
T generate() const
Generation of a random value in the range .
Definition: Random.h:252
Header file for the complete ZeroMatrix implementation.
Implementation of a zero vector.