Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ TEST
Function
TEST
test/half.cpp:23–28 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
using std::vector;
22
23
TEST(Half, print) {
24
SUPPORTED_TYPE_CHECK(af_half);
25
array aa = af::constant(3.14, 3, 3, f16);
26
array bb = af::constant(2, 3, 3, f16);
27
af_print(aa);
28
}
29
30
struct convert_params {
31
af_dtype from, to;
Callers
nothing calls this directly
Calls
5
constant
Function · 0.85
infinity
Function · 0.85
isInf
Function · 0.85
isNaN
Function · 0.85
half
Class · 0.50
Tested by
no test coverage detected