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

Method fdim

extern/half/include/half.hpp:1350–1357  ·  view source on GitHub ↗

Positive difference implementation. \param x first operand \param y second operand \return Positive difference stored in single-precision

Source from the content-addressed store, hash-verified

1348 /// \param y second operand
1349 /// \return Positive difference stored in single-precision
1350 static expr fdim(float x, float y)
1351 {
1352 #if HALF_ENABLE_CPP11_CMATH
1353 return expr(std::fdim(x, y));
1354 #else
1355 return expr((x<=y) ? 0.0f : (x-y));
1356 #endif
1357 }
1358
1359 /// Fused multiply-add implementation.
1360 /// \param x first operand

Callers

nothing calls this directly

Calls 2

exprClass · 0.85
fdimFunction · 0.85

Tested by

no test coverage detected