mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Add ctor for long
This commit is contained in:
parent
9900782e88
commit
63fb66f53a
@ -40,6 +40,12 @@ struct TensorUInt128
|
|||||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
TensorUInt128(unsigned int x) : high(0), low(x) { }
|
TensorUInt128(unsigned int x) : high(0), low(x) { }
|
||||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
|
TensorUInt128(long x) : high(0), low(x) {
|
||||||
|
eigen_assert(x >= 0);
|
||||||
|
}
|
||||||
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
|
TensorUInt128(unsigned long x) : high(0), low(x) { }
|
||||||
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
TensorUInt128(int64_t x) : high(0), low(x) {
|
TensorUInt128(int64_t x) : high(0), low(x) {
|
||||||
eigen_assert(x >= 0);
|
eigen_assert(x >= 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user