Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
shims
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/math/typetraits/IsScalar.h
>
45
#include <
blaze/math/typetraits/IsSIMDPack.h
>
46
#include <
blaze/system/Inline.h
>
47
#include <
blaze/util/EnableIf.h
>
48
49
50
51
namespace
blaze {
52
53
//=================================================================================================
54
//
55
// POW4 SHIM
56
//
57
//=================================================================================================
58
59
//*************************************************************************************************
69
template
<
typename
T
70
,
EnableIf_t< IsScalar_v<T>
||
IsSIMDPack_v<T>
>* =
nullptr
>
71
BLAZE_ALWAYS_INLINE
constexpr
decltype
(
auto
)
pow4
(
const
T& a )
noexcept
(
noexcept
(
pow2
(
pow2
( a ) ) ) )
72
{
73
return
pow2
(
pow2
( a ) );
74
}
75
//*************************************************************************************************
76
77
}
// namespace blaze
78
79
#endif
EnableIf.h
Header file for the EnableIf class template.
IsSIMDPack.h
Header file for the IsSIMDPack type trait.
IsScalar.h
Header file for the IsScalar type trait.
blaze::IsSIMDPack_v
constexpr bool IsSIMDPack_v
Auxiliary variable template for the IsSIMDPack type trait.
Definition
IsSIMDPack.h:157
blaze::pow2
decltype(auto) pow2(const Matrix< MT, SO > &m)
Computes the square for each single element of the matrix m.
Definition
Matrix.h:686
blaze::pow4
decltype(auto) pow4(const Matrix< MT, SO > &m)
Computes the quadruple for each single element of the matrix m.
Definition
Matrix.h:738
BLAZE_ALWAYS_INLINE
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition
Inline.h:85
blaze::EnableIf_t
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition
EnableIf.h:138
Pow2.h
Header file for the pow2 shim.
Inline.h
System settings for the inline keywords.
Generated by
1.18.0