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>
47 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // EVALUATE SHIM
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
69 template< typename T >
70 BLAZE_ALWAYS_INLINE constexpr EnableIf_t< IsBuiltin_v<T> || IsComplex_v<T>, T >
71  evaluate( const T& a ) noexcept
72 {
73  return a;
74 }
75 //*************************************************************************************************
76 
77 } // namespace blaze
78 
79 #endif
const MT::ResultType evaluate(const Matrix< MT, SO > &matrix)
Evaluates the given matrix expression.
Definition: Matrix.h:912
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 EnableIf class template.
Header file for the IsBuiltin type trait.
Header file for the IsComplex type trait.
System settings for the inline keywords.