Evaluate.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_EVALUATE_H_
36 #define _BLAZE_MATH_SHIMS_EVALUATE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/system/Inline.h>
44 #include <blaze/util/EnableIf.h>
45 #include <blaze/util/mpl/Or.h>
48 
49 
50 namespace blaze {
51 
52 //=================================================================================================
53 //
54 // EVALUATE SHIM
55 //
56 //=================================================================================================
57 
58 //*************************************************************************************************
70 template< typename T >
71 BLAZE_ALWAYS_INLINE constexpr EnableIf_< Or< IsBuiltin<T>, IsComplex<T> >, T >
72  evaluate( const T& a ) noexcept
73 {
74  return a;
75 }
76 //*************************************************************************************************
77 
78 } // namespace blaze
79 
80 #endif
const MT::ResultType evaluate(const Matrix< MT, SO > &matrix)
Evaluates the given matrix expression.
Definition: Matrix.h:888
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
Header file for the Or class template.
Header file for the EnableIf class template.
Header file for the IsBuiltin type trait.
Header file for the IsComplex type trait.
System settings for the inline keywords.