#include <sstream>#include <memory>#include <math.h>#include "main.h"#include <Eigen/src/Core/arch/Default/BFloat16.h>
Go to the source code of this file.
Namespaces | |
| Eigen | |
| Namespace containing all symbols from the Eigen library. | |
Macros | |
| #define | VERIFY_BFLOAT16_BITS_EQUAL(h, bits) VERIFY_IS_EQUAL((numext::bit_cast<numext::uint16_t>(h)), (static_cast<numext::uint16_t>(bits))) |
Functions | |
| float | BinaryToFloat (uint32_t sign, uint32_t exponent, uint32_t high_mantissa, uint32_t low_mantissa) |
| EIGEN_DECLARE_TEST (bfloat16_float) | |
| void | test_arithmetic () |
| void | test_array () |
| void | test_basic_functions () |
| void | test_comparison () |
| void | test_conversion () |
| void | test_numtraits () |
| void | test_product () |
| template<typename T > | |
| void | test_roundtrip () |
| void | test_trigonometric_functions () |
| #define VERIFY_BFLOAT16_BITS_EQUAL | ( | h, | |
| bits | |||
| ) | VERIFY_IS_EQUAL((numext::bit_cast<numext::uint16_t>(h)), (static_cast<numext::uint16_t>(bits))) |
Definition at line 16 of file bfloat16_float.cpp.
| float BinaryToFloat | ( | uint32_t | sign, |
| uint32_t | exponent, | ||
| uint32_t | high_mantissa, | ||
| uint32_t | low_mantissa | ||
| ) |
Definition at line 26 of file bfloat16_float.cpp.
| EIGEN_DECLARE_TEST | ( | bfloat16_float | ) |
Definition at line 366 of file bfloat16_float.cpp.
| void test_arithmetic | ( | ) |
Definition at line 210 of file bfloat16_float.cpp.
| void test_array | ( | ) |
Definition at line 331 of file bfloat16_float.cpp.
| void test_basic_functions | ( | ) |
Definition at line 259 of file bfloat16_float.cpp.
| void test_comparison | ( | ) |
Definition at line 221 of file bfloat16_float.cpp.
| void test_conversion | ( | ) |
Definition at line 48 of file bfloat16_float.cpp.
| void test_numtraits | ( | ) |
Definition at line 172 of file bfloat16_float.cpp.
| void test_product | ( | ) |
Definition at line 351 of file bfloat16_float.cpp.
| void test_roundtrip | ( | ) |
Definition at line 36 of file bfloat16_float.cpp.
| void test_trigonometric_functions | ( | ) |
Definition at line 307 of file bfloat16_float.cpp.