Pow4.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_POW4_H_
36 #define _BLAZE_MATH_SHIMS_POW4_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/math/shims/Pow2.h>
44 #include <blaze/system/Inline.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // POW4 SHIM
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
65 template< typename T >
66 BLAZE_ALWAYS_INLINE constexpr decltype(auto) pow4( const T& a ) noexcept( noexcept( pow2( pow2( a ) ) ) )
67 {
68  return pow2( pow2( a ) );
69 }
70 //*************************************************************************************************
71 
72 } // namespace blaze
73 
74 #endif
decltype(auto) pow4(const Proxy< PT, RT > &proxy)
Computing the quadruple value of the represented element.
Definition: Proxy.h:1426
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 pow2 shim.
decltype(auto) pow2(const Proxy< PT, RT > &proxy)
Computing the square value of the represented element.
Definition: Proxy.h:1384
System settings for the inline keywords.