From 978c379ed7b42ac83c7e3fc84abbd88b9ec4e38b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 30 Dec 2015 12:52:38 +0100 Subject: [PATCH] Add missing ctor from uint --- unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h index f5cca0ad77..4f2adb6716 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h @@ -38,6 +38,8 @@ struct TensorUInt128 eigen_assert(x >= 0); } EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE + TensorUInt128(unsigned int x) : high(0), low(x) { } + EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128(int64_t x) : high(0), low(x) { eigen_assert(x >= 0); }