Imag.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_FUNCTORS_IMAG_H_
36 #define _BLAZE_MATH_FUNCTORS_IMAG_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
44 #include <blaze/system/Inline.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
59 struct Imag
60 {
61  //**********************************************************************************************
64  explicit inline Imag()
65  {}
66  //**********************************************************************************************
67 
68  //**********************************************************************************************
74  template< typename T >
75  BLAZE_ALWAYS_INLINE decltype(auto) operator()( const T& a ) const
76  {
77  return imag( a );
78  }
79  //**********************************************************************************************
80 };
81 //*************************************************************************************************
82 
83 } // namespace blaze
84 
85 #endif
Header file for the imaginary shim.
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
Generic wrapper for the imag() function.
Definition: Imag.h:59
Imag()
Default constructor of the Imag functor.
Definition: Imag.h:64
decltype(auto) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition: DMatMapExpr.h:1416
System settings for the inline keywords.