Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
npy_half npy_float_to_half(float f)
31
{
32
return Half(f).Bits();
33
}
34
35
npy_half npy_double_to_half(double d)
36
{
Callers
1
npy_half_divmod
Function · 0.85
Calls
2
Half
Class · 0.85
Bits
Method · 0.80
Tested by
no test coverage detected