mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
17268b155d
The existing `TensorRandom.h` implementation makes the assumption that `half` (`bfloat16`) has a `uint16_t` member `x` (`value`), which is not always true. This currently fails on arm64, where `x` has type `__fp16`. Added `bit_cast` specializations to allow casting to/from `uint16_t` for both `half` and `bfloat16`. Also added tests in `half_float`, `bfloat16_float`, and `cxx11_tensor_random` to catch these errors in the future. |
||
---|---|---|
.. | ||
CXX11 | ||
src | ||
AdolcForward | ||
AlignedVector3 | ||
ArpackSupport | ||
AutoDiff | ||
BVH | ||
CMakeLists.txt | ||
EulerAngles | ||
FFT | ||
IterativeSolvers | ||
KroneckerProduct | ||
LevenbergMarquardt | ||
MatrixFunctions | ||
MoreVectorization | ||
MPRealSupport | ||
NonLinearOptimization | ||
NumericalDiff | ||
OpenGLSupport | ||
Polynomials | ||
Skyline | ||
SparseExtra | ||
SpecialFunctions | ||
Splines |