Blaze  3.6
ZeroMatrix.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_ZEROMATRIX_H_
36 #define _BLAZE_MATH_ZEROMATRIX_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 #include <blaze/math/ZeroVector.h>
47 #include <blaze/util/Random.h>
48 #include <blaze/util/Types.h>
49 
50 
51 namespace blaze {
52 
53 //=================================================================================================
54 //
55 // RAND SPECIALIZATION
56 //
57 //=================================================================================================
58 
59 //*************************************************************************************************
66 template< typename Type // Data type of the matrix
67  , bool SO > // Storage order
68 class Rand< ZeroMatrix<Type,SO> >
69 {
70  public:
71  //**Generate functions**************************************************************************
74  inline const ZeroMatrix<Type,SO> generate( size_t m, size_t n ) const;
76  //**********************************************************************************************
77 };
79 //*************************************************************************************************
80 
81 
82 //*************************************************************************************************
90 template< typename Type // Data type of the matrix
91  , bool SO > // Storage order
92 inline const ZeroMatrix<Type,SO>
93  Rand< ZeroMatrix<Type,SO> >::generate( size_t m, size_t n ) const
94 {
95  return ZeroMatrix<Type,SO>( m, n );
96 }
98 //*************************************************************************************************
99 
100 } // namespace blaze
101 
102 #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 ZeroVector implementation.
Header file for the complete CompressedVector implementation.
Implementation of a zero matrix.
T generate() const
Generation of a random value in the range .
Definition: Random.h:252
Header file for the complete CompressedMatrix implementation.