$darkmode
Eigen  5.0.1-dev
MathFunctions.h
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2020, Arm Limited and Contributors
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_MATH_FUNCTIONS_SVE_H
11 #define EIGEN_MATH_FUNCTIONS_SVE_H
12 
13 // IWYU pragma: private
14 #include "../../InternalHeaderCheck.h"
15 
16 namespace Eigen {
17 namespace internal {
18 
19 template <>
20 EIGEN_STRONG_INLINE PacketXf pexp<PacketXf>(const PacketXf& x) {
21  return pexp_float(x);
22 }
23 
24 template <>
25 EIGEN_STRONG_INLINE PacketXf plog<PacketXf>(const PacketXf& x) {
26  return plog_float(x);
27 }
28 
29 template <>
30 EIGEN_STRONG_INLINE PacketXf psin<PacketXf>(const PacketXf& x) {
31  return psin_float(x);
32 }
33 
34 template <>
35 EIGEN_STRONG_INLINE PacketXf pcos<PacketXf>(const PacketXf& x) {
36  return pcos_float(x);
37 }
38 
39 // Hyperbolic Tangent function.
40 template <>
41 EIGEN_STRONG_INLINE PacketXf ptanh<PacketXf>(const PacketXf& x) {
42  return ptanh_float(x);
43 }
44 
45 } // end namespace internal
46 } // end namespace Eigen
47 
48 #endif // EIGEN_MATH_FUNCTIONS_SVE_H
Namespace containing all symbols from the Eigen library.
Definition: B01_Experimental.dox:1