![]() |
|
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) |
| template<typename T > | |
| void | test_roundtrip () |
| void | test_conversion () |
| void | test_numtraits () |
| void | test_arithmetic () |
| void | test_comparison () |
| void | test_basic_functions () |
| void | test_trigonometric_functions () |
| void | test_array () |
| void | test_product () |
| void | test_nextafter () |
| EIGEN_DECLARE_TEST (bfloat16_float) | |
| #define VERIFY_BFLOAT16_BITS_EQUAL | ( | h, | |
| bits | |||
| ) | VERIFY_IS_EQUAL((numext::bit_cast<numext::uint16_t>(h)), (static_cast<numext::uint16_t>(bits))) |
| float BinaryToFloat | ( | uint32_t | sign, |
| uint32_t | exponent, | ||
| uint32_t | high_mantissa, | ||
| uint32_t | low_mantissa | ||
| ) |
| EIGEN_DECLARE_TEST | ( | bfloat16_float | ) |
| void test_arithmetic | ( | ) |
References VERIFY_IS_APPROX, and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
| void test_array | ( | ) |
References Eigen::placeholders::all, i, size, sqrt(), VERIFY, VERIFY_IS_APPROX, and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
| void test_basic_functions | ( | ) |
References abs(), Eigen::bfloat16_impl::ceil(), EIGEN_PI, Eigen::bfloat16_impl::exp(), Eigen::bfloat16_impl::expm1(), Eigen::bfloat16_impl::floor(), Eigen::bfloat16_impl::log(), Eigen::bfloat16_impl::log1p(), Eigen::bfloat16_impl::pow(), Eigen::ArrayBase< Derived >::pow(), sqrt(), VERIFY_IS_APPROX, and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
| void test_comparison | ( | ) |
| void test_conversion | ( | ) |
References a, abs(), b, BinaryToFloat(), calibrate::c, oomph::SarahBL::epsilon, i, isinf, isnan, VERIFY, VERIFY_BFLOAT16_BITS_EQUAL, VERIFY_IS_EQUAL, and VERIFY_LE.
Referenced by EIGEN_DECLARE_TEST().
| void test_nextafter | ( | ) |
References oomph::SarahBL::epsilon, isnan, max, Eigen::numext::nextafter(), VERIFY, and VERIFY_BFLOAT16_BITS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
| void test_numtraits | ( | ) |
References oomph::SarahBL::epsilon, isnan, min, VERIFY, and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
| void test_product | ( | ) |
References cols, EIGEN_TEST_MAX_SIZE, rows, and VERIFY_IS_APPROX.
Referenced by EIGEN_DECLARE_TEST().
| void test_roundtrip | ( | ) |
References VERIFY_IS_EQUAL.
| void test_trigonometric_functions | ( | ) |
References cos(), EIGEN_PI, sin(), Eigen::bfloat16_impl::tan(), and VERIFY_IS_APPROX.
Referenced by EIGEN_DECLARE_TEST().