aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/GenericPacketMath.h
diff options
context:
space:
mode:
authorGravatar Roger Martin <roger@quantumbioinc.com>2014-06-19 14:55:14 +0100
committerGravatar Roger Martin <roger@quantumbioinc.com>2014-06-19 14:55:14 +0100
commiteb49100de9bca2c78f641b959a76112007c6b2f6 (patch)
tree39a436a7a29bd09e913e3746971d52a650ef75c0 /Eigen/src/Core/GenericPacketMath.h
parentafb1a8c124c9ee52e027a3625b14ecad6be99fa4 (diff)
Add component-wise atan() function (see bug #80).
Diffstat (limited to 'Eigen/src/Core/GenericPacketMath.h')
-rwxr-xr-xEigen/src/Core/GenericPacketMath.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h
index 98313c68f..4523d2263 100755
--- a/Eigen/src/Core/GenericPacketMath.h
+++ b/Eigen/src/Core/GenericPacketMath.h
@@ -318,6 +318,10 @@ Packet pasin(const Packet& a) { using std::asin; return asin(a); }
template<typename Packet> EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
Packet pacos(const Packet& a) { using std::acos; return acos(a); }
+/** \internal \returns the atan of \a a (coeff-wise) */
+template<typename Packet> EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
+Packet patan(const Packet& a) { using std::atan; return atan(a); }
+
/** \internal \returns the exp of \a a (coeff-wise) */
template<typename Packet> EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
Packet pexp(const Packet& a) { using std::exp; return exp(a); }