Reset.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_FUNCTORS_RESET_H_
36 #define _BLAZE_MATH_FUNCTORS_RESET_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/math/shims/Reset.h>
44 #include <blaze/system/Inline.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
59 struct Reset
60 {
61  //**********************************************************************************************
64  explicit inline Reset()
65  {}
66  //**********************************************************************************************
67 
68  //**********************************************************************************************
74  template< typename T >
75  BLAZE_ALWAYS_INLINE void operator()( T& a ) const
76  {
77  reset( a );
78  }
79  //**********************************************************************************************
80 };
81 //*************************************************************************************************
82 
83 } // namespace blaze
84 
85 #endif
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:591
Header file for the reset shim.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
BLAZE_ALWAYS_INLINE void operator()(T &a) const
Returns the result of the reset() function for the given object/value.
Definition: Reset.h:75
Reset()
Default constructor of the Reset functor.
Definition: Reset.h:64
Generic wrapper for the reset() function.
Definition: Reset.h:59
System settings for the inline keywords.