Blaze  3.6
Imaginary.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_IMAGINARY_H_
36 #define _BLAZE_MATH_SHIMS_IMAGINARY_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/system/Inline.h>
44 #include <blaze/util/EnableIf.h>
45 #include <blaze/util/MaybeUnused.h>
47 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // IMAGINARY SHIM
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
82 template< typename T >
83 BLAZE_ALWAYS_INLINE EnableIf_t< IsBuiltin_v<T>, T > imag( T a ) noexcept
84 {
85  MAYBE_UNUSED( a );
86 
87  return T(0);
88 }
90 //*************************************************************************************************
91 
92 } // namespace blaze
93 
94 #endif
Header file for the MAYBE_UNUSED function template.
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
constexpr void MAYBE_UNUSED(const Args &...)
Suppression of unused parameter warnings.
Definition: MaybeUnused.h:81
Header file for the EnableIf class template.
Header file for the IsBuiltin type trait.
decltype(auto) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition: DMatMapExpr.h:1417
System settings for the inline keywords.