rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rexlib::float16_t Class Reference

16 bit floating point number representation. More...

#include <rexlib/core/numerical/fixed_width_float.hpp>

Public Member Functions

 float16_t (float value) noexcept
 
 float16_t (const float16_t &other)=default
 
 float16_t (float16_t &&other)=default
 
float16_t & operator= (const float16_t &other)=default
 
float16_t & operator= (float16_t &&other)=default
 
 operator float () const noexcept
 
std::uint16_t get_bits () const noexcept
 Obtain the underlying bit pattern.
 

Detailed Description

16 bit floating point number representation.

As there is no standardized half-width float type in C/C++ use a placeholder.

Member Function Documentation

◆ get_bits()

std::uint16_t rexlib::float16_t::get_bits ( ) const
noexcept

Obtain the underlying bit pattern.

Returns
std::uint16_t Unsigned integer with the bits.

The documentation for this class was generated from the following file: