Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
HasSIMDConj.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_HASSIMDCONJ_H_
36
#define _BLAZE_MATH_TYPETRAITS_HASSIMDCONJ_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/HasSIMDMult.h
>
44
#include <
blaze/util/Complex.h
>
45
#include <
blaze/util/IntegralConstant.h
>
46
#include <
blaze/util/typetraits/IsFloatingPoint.h
>
47
#include <
blaze/util/typetraits/IsNumeric.h
>
48
#include <
blaze/util/typetraits/IsSigned.h
>
49
#include <
blaze/util/typetraits/RemoveCVRef.h
>
50
51
52
namespace
blaze {
53
54
//=================================================================================================
55
//
56
// CLASS DEFINITION
57
//
58
//=================================================================================================
59
60
//*************************************************************************************************
65
template
<
typename
T
// Type of the operand
66
,
typename
=
void
>
// Restricting condition
67
struct
HasSIMDConjHelper
68
:
public
BoolConstant
< IsNumeric_v<T> >
69
{};
71
//*************************************************************************************************
72
73
74
//*************************************************************************************************
76
template
<
typename
T >
77
struct
HasSIMDConjHelper< complex<T> >
78
:
public
BoolConstant
< IsNumeric_v<T> && IsSigned_v<T> &&
79
( ( !bool( BLAZE_AVX512F_MODE ) && HasSIMDMult_v<T,T> && ( IsFloatingPoint_v<T> || sizeof(T) <= 4UL ) ) ||
80
( bool( BLAZE_AVX512F_MODE ) && IsFloatingPoint_v<T> ) ||
81
( bool( BLAZE_AVX512BW_MODE ) && sizeof(T) == 2UL ) ||
82
( bool( BLAZE_AVX512F_MODE ) && sizeof(T) >= 4UL ) ) >
83
{};
85
//*************************************************************************************************
86
87
88
//*************************************************************************************************
109
template
<
typename
T >
// Type of the operand
110
struct
HasSIMDConj
111
:
public
BoolConstant
< HasSIMDConjHelper< RemoveCVRef_t<T> >::value >
112
{};
113
//*************************************************************************************************
114
115
116
//*************************************************************************************************
129
template
<
typename
T >
// Type of the operand
130
constexpr
bool
HasSIMDConj_v
=
HasSIMDConj<T>::value
;
131
//*************************************************************************************************
132
133
}
// namespace blaze
134
135
#endif
Complex.h
Header file for the complex data type.
HasSIMDMult.h
Header file for the HasSIMDMult type trait.
IntegralConstant.h
Header file for the IntegralConstant class template.
IsFloatingPoint.h
Header file for the IsFloatingPoint type trait.
IsNumeric.h
Header file for the IsNumeric type trait.
IsSigned.h
Header file for the IsSigned type trait.
RemoveCVRef.h
Header file for the RemoveCVRef type trait.
blaze::HasSIMDConj_v
constexpr bool HasSIMDConj_v
Auxiliary variable template for the HasSIMDConj type trait.
Definition
HasSIMDConj.h:130
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::HasSIMDConj
Availability of a SIMD conjugate operation for the given data type.
Definition
HasSIMDConj.h:112
Generated by
1.18.0