DeclDiag.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_FUNCTORS_DECLDIAG_H_
36 #define _BLAZE_MATH_FUNCTORS_DECLDIAG_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/system/Inline.h>
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
58 struct DeclDiag
59 {
60  //**********************************************************************************************
63  explicit inline DeclDiag()
64  {}
65  //**********************************************************************************************
66 
67  //**********************************************************************************************
73  template< typename T >
74  BLAZE_ALWAYS_INLINE decltype(auto) operator()( const T& a ) const
75  {
76  return decldiag( a );
77  }
78  //**********************************************************************************************
79 };
80 //*************************************************************************************************
81 
82 } // namespace blaze
83 
84 #endif
decltype(auto) decldiag(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as diagonal.
Definition: DMatDeclDiagExpr.h:975
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
DeclDiag()
Default constructor of the DeclDiag functor.
Definition: DeclDiag.h:63
Generic wrapper for the decldiag() function.
Definition: DeclDiag.h:58
System settings for the inline keywords.