MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / abs

Function abs

test/arrayfire_test.cpp:494–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494af_half abs(af_half in) {
495 half_float::half in_;
496 // casting to void* to avoid class-memaccess warnings on windows
497 memcpy(static_cast<void *>(&in_), &in, sizeof(af_half));
498 half_float::half out_ = abs(in_);
499 af_half out;
500 memcpy(&out, &out_, sizeof(af_half));
501 return out;
502}
503
504af_half operator-(af_half lhs, af_half rhs) {
505 half_float::half lhs_;

Callers 15

TESTFunction · 0.70
approx1TestFunction · 0.70
approx1CubicTestFunction · 0.70
TESTFunction · 0.70
compareFunction · 0.70
TESTFunction · 0.70
TESTFunction · 0.70
choleskyTesterFunction · 0.70
BINARY_TESTS_NEARFunction · 0.70
TESTFunction · 0.70
qrTesterFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected