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

Function npy_double_to_half

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

Source from the content-addressed store, hash-verified

33}
34
35npy_half npy_double_to_half(double d)
36{
37 return Half(d).Bits();
38}
39
40int npy_half_iszero(npy_half h)
41{

Callers

nothing calls this directly

Calls 2

HalfClass · 0.85
BitsMethod · 0.80

Tested by

no test coverage detected