Eigen  5.0.1
 
Loading...
Searching...
No Matches
MathFunctions.h
1// This file is part of Eigen, a lightweight C++ template library
2// for linear algebra.
3//
4// Copyright (C) 2024 XiWei Gu (guxiwei-hf@loongson.cn)
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// SPDX-License-Identifier: MPL-2.0
10
11#ifndef EIGEN_MATH_FUNCTIONS_LSX_H
12#define EIGEN_MATH_FUNCTIONS_LSX_H
13
14/* The sin and cos functions of this file are loosely derived from
15 * Julien Pommier's sse math library: http://gruntthepeon.free.fr/ssemath/
16 */
17
18// IWYU pragma: private
19#include "../../InternalHeaderCheck.h"
20
21namespace Eigen {
22
23namespace internal {
24
25EIGEN_DOUBLE_PACKET_FUNCTION(atanh, Packet2d)
26EIGEN_DOUBLE_PACKET_FUNCTION(log, Packet2d)
27EIGEN_DOUBLE_PACKET_FUNCTION(log2, Packet2d)
28EIGEN_DOUBLE_PACKET_FUNCTION(tanh, Packet2d)
29
30EIGEN_FLOAT_PACKET_FUNCTION(atanh, Packet4f)
31EIGEN_FLOAT_PACKET_FUNCTION(log, Packet4f)
32EIGEN_FLOAT_PACKET_FUNCTION(log2, Packet4f)
33EIGEN_FLOAT_PACKET_FUNCTION(tanh, Packet4f)
34
35EIGEN_GENERIC_PACKET_FUNCTION(atan, Packet2d)
36EIGEN_GENERIC_PACKET_FUNCTION(atan, Packet4f)
37EIGEN_GENERIC_PACKET_FUNCTION(exp2, Packet2d)
38EIGEN_GENERIC_PACKET_FUNCTION(exp2, Packet4f)
39
40} // end namespace internal
41
42} // end namespace Eigen
43
44#endif // EIGEN_MATH_FUNCTIONS_LSX_H