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

Function npy_float_to_half

numpy/core/src/npymath/halffloat.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30npy_half npy_float_to_half(float f)
31{
32 return Half(f).Bits();
33}
34
35npy_half npy_double_to_half(double d)
36{

Callers 1

npy_half_divmodFunction · 0.85

Calls 2

HalfClass · 0.85
BitsMethod · 0.80

Tested by

no test coverage detected