Real.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_FUNCTORS_REAL_H_
36 #define _BLAZE_MATH_FUNCTORS_REAL_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/math/shims/Real.h>
44 #include <blaze/system/Inline.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
59 struct Real
60 {
61  //**********************************************************************************************
67  template< typename T >
68  BLAZE_ALWAYS_INLINE auto operator()( const T& a ) const
69  {
70  return real( a );
71  }
72  //**********************************************************************************************
73 };
74 //*************************************************************************************************
75 
76 } // namespace blaze
77 
78 #endif
BLAZE_ALWAYS_INLINE auto operator()(const T &a) const
Returns the result of the real() function for the given object/value.
Definition: Real.h:68
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
const DMatForEachExpr< MT, Real, SO > real(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the real part of each single element of dm.
Definition: DMatForEachExpr.h:1223
Generic wrapper for the real() function.
Definition: Real.h:59
Header file for the real shim.
System settings for the inline keywords.