Real.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_REAL_H_
36 #define _BLAZE_MATH_SHIMS_REAL_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/system/Inline.h>
44 #include <blaze/util/EnableIf.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // REAL SHIM
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
81 template< typename T >
82 BLAZE_ALWAYS_INLINE constexpr EnableIf_t< IsBuiltin_v<T>, T > real( T a ) noexcept
83 {
84  return a;
85 }
87 //*************************************************************************************************
88 
89 } // namespace blaze
90 
91 #endif
decltype(auto) real(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the real part of each single element of dm.
Definition: DMatMapExpr.h:1392
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.
System settings for the inline keywords.