Namespaces | Macros | Functions
bfloat16_float.cpp File Reference
#include <sstream>
#include <memory>
#include <math.h>
#include "main.h"
#include <Eigen/src/Core/arch/Default/BFloat16.h>
Include dependency graph for bfloat16_float.cpp:

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 ()
 

Macro Definition Documentation

◆ VERIFY_BFLOAT16_BITS_EQUAL

#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.

Function Documentation

◆ BinaryToFloat()

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()

EIGEN_DECLARE_TEST ( bfloat16_float  )

Definition at line 366 of file bfloat16_float.cpp.

◆ test_arithmetic()

void test_arithmetic ( )

Definition at line 210 of file bfloat16_float.cpp.

◆ test_array()

void test_array ( )

Definition at line 331 of file bfloat16_float.cpp.

◆ test_basic_functions()

void test_basic_functions ( )

Definition at line 259 of file bfloat16_float.cpp.

◆ test_comparison()

void test_comparison ( )

Definition at line 221 of file bfloat16_float.cpp.

◆ test_conversion()

void test_conversion ( )

Definition at line 48 of file bfloat16_float.cpp.

◆ test_numtraits()

void test_numtraits ( )

Definition at line 172 of file bfloat16_float.cpp.

◆ test_product()

void test_product ( )

Definition at line 351 of file bfloat16_float.cpp.

◆ test_roundtrip()

template<typename T >
void test_roundtrip ( )

Definition at line 36 of file bfloat16_float.cpp.

◆ test_trigonometric_functions()

void test_trigonometric_functions ( )

Definition at line 307 of file bfloat16_float.cpp.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:45