Class half#

Class Documentation#

class half#

Public Functions

half() noexcept = default#
half(const half&) = default#
half(half&&) = default#
half(float f) noexcept#
template<typename T>
explicit half(T d) noexcept#
half &operator=(const half&) = default#
half &operator=(half&&) = default#
template<typename T>
half &operator=(T d) noexcept#
explicit operator float() const noexcept#
template<typename T>
explicit operator T() const noexcept#
half &operator+=(const half &rhs) noexcept#
half &operator-=(const half &rhs) noexcept#
half &operator*=(const half &rhs) noexcept#
half &operator/=(const half &rhs) noexcept#
half &operator--() noexcept#
half operator--(int) noexcept#
half &operator++() noexcept#
half operator++(int) noexcept#
half operator-() const noexcept#
half operator+() const noexcept#
detail::float16_t data() const noexcept#
detail::float16_t &data() noexcept#
template<typename T, typename Char, typename Ctx>
void str(const fmt::formatter<T, Char> &formatter, Ctx &ctx) const#

Public Static Functions

static half fromBits(uint16_t bits) noexcept#