diff options
author | 2015-12-07 16:38:48 -0800 | |
---|---|---|
committer | 2015-12-07 16:38:48 -0800 | |
commit | 73b68d4370f761d6422e02e7e515aefdcd652c1e (patch) | |
tree | b72320d74e4a74d978649e356013480e8e531035 /Eigen/src | |
parent | fa4f933c0fe65eda6a051f978db12210f11f5cdb (diff) |
Fixed a couple of typos
Cleaned up the code a bit.
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/GenericPacketMath.h | 4 | ||||
-rw-r--r-- | Eigen/src/Core/SpecialFunctions.h | 13 | ||||
-rw-r--r-- | Eigen/src/Core/util/ForwardDeclarations.h | 6 |
3 files changed, 7 insertions, 16 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index 0e7dd29ed..6872f5e53 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -43,7 +43,7 @@ struct default_packet_traits { enum { HasHalfPacket = 0, - + HasAdd = 1, HasSub = 1, HasMul = 1, @@ -76,7 +76,7 @@ struct default_packet_traits HasTanh = 0, HasLGamma = 0, HasErf = 0, - HasErfc = 0 + HasErfc = 0, HasRound = 0, HasFloor = 0, diff --git a/Eigen/src/Core/SpecialFunctions.h b/Eigen/src/Core/SpecialFunctions.h index d481f2e06..ae8f0105a 100644 --- a/Eigen/src/Core/SpecialFunctions.h +++ b/Eigen/src/Core/SpecialFunctions.h @@ -1,7 +1,6 @@ // This file is part of Eigen, a lightweight C++ template library // for linear algebra. // -// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2015 Eugene Brevdo <ebrevdo@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla @@ -45,14 +44,13 @@ template <> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE double __erfc<double>(double x } // end namespace internal /**************************************************************************** - * Implementations * + * Implementations * ****************************************************************************/ namespace internal { /**************************************************************************** - * Implementation of - * lgamma * + * Implementation of lgamma * ****************************************************************************/ template<typename Scalar> @@ -72,8 +70,7 @@ struct lgamma_retval }; /**************************************************************************** - * Implementation of - * erf * + * Implementation of erf * ****************************************************************************/ template<typename Scalar> @@ -92,8 +89,8 @@ struct erf_retval typedef Scalar type; }; -/**************************************************************************** -* Implementation of erfc * +/*************************************************************************** +* Implementation of erfc * ****************************************************************************/ template<typename Scalar> diff --git a/Eigen/src/Core/util/ForwardDeclarations.h b/Eigen/src/Core/util/ForwardDeclarations.h index 27c7907fc..483af876f 100644 --- a/Eigen/src/Core/util/ForwardDeclarations.h +++ b/Eigen/src/Core/util/ForwardDeclarations.h @@ -294,12 +294,6 @@ struct stem_function }; } -// SpecialFunctions forward declarations -namespace internal { -template <typename Scalar> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Scalar __lgamma(Scalar x); -template <typename Scalar> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Scalar __erf(Scalar x); -template <typename Scalar> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Scalar __erfc(Scalar x); - } // end namespace Eigen #endif // EIGEN_FORWARDDECLARATIONS_H |