MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / operator+

Function operator+

src/backend/opencl/math.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace arrayfire {
14namespace opencl {
15cfloat operator+(cfloat lhs, cfloat rhs) {
16 cfloat res = {{lhs.s[0] + rhs.s[0], lhs.s[1] + rhs.s[1]}};
17 return res;
18}
19
20common::half operator+(common::half lhs, common::half rhs) noexcept {
21 return common::half(static_cast<float>(lhs) + static_cast<float>(rhs));

Callers

nothing calls this directly

Calls 1

halfClass · 0.50

Tested by

no test coverage detected