Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
35
npy_half npy_double_to_half(double d)
36
{
37
return Half(d).Bits();
38
}
39
40
int npy_half_iszero(npy_half h)
41
{
Callers
nothing calls this directly
Calls
2
Half
Class · 0.85
Bits
Method · 0.80
Tested by
no test coverage detected