Fixed a couple of typos

Cleaned up the code a bit.
This commit is contained in:
Benoit Steiner
2015-12-07 16:38:48 -08:00
parent fa4f933c0f
commit 73b68d4370
4 changed files with 13 additions and 19 deletions

View File

@@ -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,

View File

@@ -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>

View File

@@ -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