MCPcopy Create free account
hub / github.com/numpy/numpy / FromBits

Method FromBits

numpy/core/src/common/half.hpp:126–131  ·  view source on GitHub ↗

Returns a new Half constructed from the IEEE 754 binary16.

Source from the content-addressed store, hash-verified

124
125 /// Returns a new Half constructed from the IEEE 754 binary16.
126 static constexpr Half FromBits(uint16_t bits)
127 {
128 Half h{};
129 h.bits_ = bits;
130 return h;
131 }
132 /// Returns the IEEE 754 binary16 representation.
133 constexpr uint16_t Bits() const
134 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected