Blaze 3.9
Loading...
Searching...
No Matches
Acosh.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_FUNCTORS_ACOSH_H_
36#define _BLAZE_MATH_FUNCTORS_ACOSH_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
55#include <blaze/system/Inline.h>
56
57
58namespace blaze {
59
60//=================================================================================================
61//
62// CLASS DEFINITION
63//
64//=================================================================================================
65
66//*************************************************************************************************
70struct Acosh
71{
72 //**********************************************************************************************
78 template< typename T >
79 BLAZE_ALWAYS_INLINE BLAZE_DEVICE_CALLABLE decltype(auto) operator()( T&& a ) const
80 {
81 return acosh( std::forward<T>( a ) );
82 }
83 //**********************************************************************************************
84
85 //**********************************************************************************************
90 template< typename T >
91 static constexpr bool simdEnabled() { return HasSIMDAcosh_v<T>; }
92 //**********************************************************************************************
93
94 //**********************************************************************************************
99 static constexpr bool paddingEnabled() { return false; }
100 //**********************************************************************************************
101
102 //**********************************************************************************************
108 template< typename T >
109 BLAZE_ALWAYS_INLINE decltype(auto) load( const T& a ) const
110 {
112 return acosh( a );
113 }
114 //**********************************************************************************************
115};
116//*************************************************************************************************
117
118
119
120
121//=================================================================================================
122//
123// YIELDSUNIFORM SPECIALIZATIONS
124//
125//=================================================================================================
126
127//*************************************************************************************************
129template< typename T >
130struct YieldsUniform<Acosh,T>
131 : public IsUniform<T>
132{};
134//*************************************************************************************************
135
136
137
138
139//=================================================================================================
140//
141// YIELDSSYMMETRIC SPECIALIZATIONS
142//
143//=================================================================================================
144
145//*************************************************************************************************
147template< typename MT >
148struct YieldsSymmetric<Acosh,MT>
149 : public IsSymmetric<MT>
150{};
152//*************************************************************************************************
153
154
155
156
157//=================================================================================================
158//
159// YIELDSHERMITIAN SPECIALIZATIONS
160//
161//=================================================================================================
162
163//*************************************************************************************************
165template< typename MT >
166struct YieldsHermitian<Acosh,MT>
167 : public IsHermitian<MT>
168{};
170//*************************************************************************************************
171
172} // namespace blaze
173
174#endif
Header file for the HasSIMDAcosh type trait.
Macro for CUDA compatibility.
Header file for the IsHermitian type trait.
Header file for the IsSymmetric type trait.
Header file for the IsUniform type trait.
Header file for the YieldsHermitian type trait.
Header file for the YieldsSymmetric type trait.
Header file for the YieldsUniform type trait.
Constraint on the data type.
decltype(auto) acosh(const DenseMatrix< MT, SO > &dm)
Computes the inverse hyperbolic cosine for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2249
#define BLAZE_CONSTRAINT_MUST_BE_SIMD_PACK(T)
Constraint on the data type.
Definition SIMDPack.h:60
constexpr bool HasSIMDAcosh_v
Auxiliary variable template for the HasSIMDAcosh type trait.
Definition HasSIMDAcosh.h:119
#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
Header file for the acosh shim.
Header file for the SIMD inverse hyperbolic cosine functionality.
Generic wrapper for the acosh() function.
Definition Acosh.h:71
BLAZE_ALWAYS_INLINE decltype(auto) load(const T &a) const
Returns the result of the acosh() function for the given SIMD vector.
Definition Acosh.h:109
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition Acosh.h:99
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition Acosh.h:91
Compile time check for Hermitian matrices.
Definition IsHermitian.h:115
Compile time check for symmetric matrices.
Definition IsSymmetric.h:115
Compile time check for operations on matrices.
Definition YieldsHermitian.h:67
Compile time check for operations on matrices.
Definition YieldsSymmetric.h:67
System settings for the inline keywords.