Blaze 3.9
Loading...
Searching...
No Matches
Arg.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_FUNCTORS_ARG_H_
36#define _BLAZE_MATH_FUNCTORS_ARG_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
60#include <blaze/system/Inline.h>
62
63
64namespace blaze {
65
66//=================================================================================================
67//
68// CLASS DEFINITION
69//
70//=================================================================================================
71
72//*************************************************************************************************
76struct Arg
77{
78 //**********************************************************************************************
84 template< typename T >
85 BLAZE_ALWAYS_INLINE BLAZE_DEVICE_CALLABLE decltype(auto) operator()( T&& a ) const
86 {
87 return arg( std::forward<T>( a ) );
88 }
89 //**********************************************************************************************
90};
91//*************************************************************************************************
92
93
94
95
96//=================================================================================================
97//
98// YIELDSUNIFORM SPECIALIZATIONS
99//
100//=================================================================================================
101
102//*************************************************************************************************
104template< typename T >
105struct YieldsUniform<Arg,T>
106 : public IsUniform<T>
107{};
109//*************************************************************************************************
110
111
112
113
114//=================================================================================================
115//
116// YIELDSSYMMETRIC SPECIALIZATIONS
117//
118//=================================================================================================
119
120//*************************************************************************************************
122template< typename MT >
123struct YieldsSymmetric<Arg,MT>
124 : public BoolConstant< IsSymmetric_v<MT> >
125{};
127//*************************************************************************************************
128
129
130
131
132//=================================================================================================
133//
134// YIELDSLOWER SPECIALIZATIONS
135//
136//=================================================================================================
137
138//*************************************************************************************************
140template< typename MT >
141struct YieldsLower<Arg,MT>
142 : public IsLower<MT>
143{};
145//*************************************************************************************************
146
147
148
149
150//=================================================================================================
151//
152// YIELDSSTRICTLYLOWER SPECIALIZATIONS
153//
154//=================================================================================================
155
156//*************************************************************************************************
158template< typename MT >
159struct YieldsStrictlyLower<Arg,MT>
160 : public IsStrictlyLower<MT>
161{};
163//*************************************************************************************************
164
165
166
167
168//=================================================================================================
169//
170// YIELDSUPPER SPECIALIZATIONS
171//
172//=================================================================================================
173
174//*************************************************************************************************
176template< typename MT >
177struct YieldsUpper<Arg,MT>
178 : public IsUpper<MT>
179{};
181//*************************************************************************************************
182
183
184
185
186//=================================================================================================
187//
188// YIELDSSTRICTLYUPPER SPECIALIZATIONS
189//
190//=================================================================================================
191
192//*************************************************************************************************
194template< typename MT >
195struct YieldsStrictlyUpper<Arg,MT>
196 : public IsStrictlyUpper<MT>
197{};
199//*************************************************************************************************
200
201
202
203
204//=================================================================================================
205//
206// YIELDSZERO SPECIALIZATIONS
207//
208//=================================================================================================
209
210//*************************************************************************************************
212template< typename T >
213struct YieldsZero<Arg,T>
214 : public IsZero<T>
215{};
217//*************************************************************************************************
218
219} // namespace blaze
220
221#endif
Macro for CUDA compatibility.
Header file for the IntegralConstant class template.
Header file for the IsLower type trait.
Header file for the IsStrictlyLower type trait.
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Header file for the IsUniform type trait.
Header file for the IsUpper type trait.
Header file for the YieldsLower type trait.
Header file for the YieldsStrictlyLower type trait.
Header file for the YieldsStrictlyUpper type trait.
Header file for the YieldsSymmetric type trait.
Header file for the YieldsUniform type trait.
Header file for the YieldsUpper type trait.
Header file for the YieldsZero type trait.
decltype(auto) arg(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the phase angle of each single element of dm.
Definition DMatMapExpr.h:1585
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition Inline.h:85
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition HostDevice.h:94
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition IntegralConstant.h:110
Header file for the arg shim.
Generic wrapper for the arg() function.
Definition Arg.h:77
Compile time check for lower triangular matrices.
Definition IsLower.h:118
Compile time check for strictly lower triangular matrices.
Definition IsStrictlyLower.h:116
Compile time check for strictly upper triangular matrices.
Definition IsStrictlyUpper.h:116
Compile time check for upper triangular matrices.
Definition IsUpper.h:118
Compile time check for zero vectors or matrices.
Definition IsZero.h:109
Compile time check for operations on matrices.
Definition YieldsLower.h:69
Compile time check for operations on matrices.
Definition YieldsStrictlyLower.h:67
Compile time check for operations on matrices.
Definition YieldsStrictlyUpper.h:67
Compile time check for operations on matrices.
Definition YieldsSymmetric.h:67
Compile time check for operations on matrices.
Definition YieldsUpper.h:69
Compile time check for operations on vectors and matrices.
Definition YieldsZero.h:68
System settings for the inline keywords.
Header file for the IsZero type trait.