mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-01 08:14:10 +08:00
Merged eigen/eigen into default
This commit is contained in:
commit
02080e2b67
@ -123,7 +123,7 @@ template<typename a, typename... as> struct get<0, type_lis
|
|||||||
template<typename T, int n, T a, T... as> struct get<n, numeric_list<T, a, as...>> : get<n-1, numeric_list<T, as...>> {};
|
template<typename T, int n, T a, T... as> struct get<n, numeric_list<T, a, as...>> : get<n-1, numeric_list<T, as...>> {};
|
||||||
template<typename T, T a, T... as> struct get<0, numeric_list<T, a, as...>> { constexpr static T value = a; };
|
template<typename T, T a, T... as> struct get<0, numeric_list<T, a, as...>> { constexpr static T value = a; };
|
||||||
|
|
||||||
template<std::size_t n, typename T, T a, T... as> constexpr inline const T array_get(const numeric_list<T, a, as...>& l) {
|
template<std::size_t n, typename T, T a, T... as> constexpr inline const T array_get(const numeric_list<T, a, as...>&) {
|
||||||
return get<(int)n, numeric_list<T, a, as...>>::value;
|
return get<(int)n, numeric_list<T, a, as...>>::value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,8 +122,8 @@ struct lgamma_impl<float> {
|
|||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
static EIGEN_STRONG_INLINE float run(float x) {
|
static EIGEN_STRONG_INLINE float run(float x) {
|
||||||
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
|
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
|
||||||
int signgam;
|
int dummy;
|
||||||
return ::lgammaf_r(x, &signgam);
|
return ::lgammaf_r(x, &dummy);
|
||||||
#else
|
#else
|
||||||
return ::lgammaf(x);
|
return ::lgammaf(x);
|
||||||
#endif
|
#endif
|
||||||
@ -135,8 +135,8 @@ struct lgamma_impl<double> {
|
|||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
static EIGEN_STRONG_INLINE double run(double x) {
|
static EIGEN_STRONG_INLINE double run(double x) {
|
||||||
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
|
#if !defined(__CUDA_ARCH__) && (defined(_BSD_SOURCE) || defined(_SVID_SOURCE)) && !defined(__APPLE__)
|
||||||
int signgam;
|
int dummy;
|
||||||
return ::lgamma_r(x, &signgam);
|
return ::lgamma_r(x, &dummy);
|
||||||
#else
|
#else
|
||||||
return ::lgamma(x);
|
return ::lgamma(x);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user