File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
inst/include/Eigen/src/Core/arch/CUDA Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ 2018-02-05 Dirk Eddelbuettel <edd@debian.org>
2+
3+ * inst/include/Eigen/src/Core/arch/CUDA/Half.h (Eigen): Condition use
4+ of long long and unsigned long on C++11
5+
162018-02-04 Yixuan Qiu <yixuan.qiu@cos.name>
27
38 [ In RcppEigen 0.3.3.* branch ]
4-
59 * inst/include/Eigen: Updated to the upstream 3.3 branch of Eigen
610 based on version 3.3.4
711 * inst/include/unsupported: Idem
Original file line number Diff line number Diff line change @@ -116,12 +116,14 @@ struct half : public half_impl::half_base {
116116 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (long ) const {
117117 return static_cast <long >(half_impl::half_to_float (*this ));
118118 }
119+ #if EIGEN_HAS_CXX11
119120 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (unsigned long ) const {
120121 return static_cast <unsigned long >(half_impl::half_to_float (*this ));
121122 }
122123 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (long long ) const {
123124 return static_cast <long long >(half_impl::half_to_float (*this ));
124125 }
126+ #endif
125127 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (unsigned long long ) const {
126128 return static_cast <unsigned long long >(half_to_float (*this ));
127129 }
You can’t perform that action at this time.
0 commit comments