MCPcopy Create free account
hub / github.com/apache/singa / abs

Function abs

include/half.hpp:2734–2734  ·  view source on GitHub ↗

Absolute value. See also:** Documentation for [std::abs](https://en.cppreference.com/w/cpp/numeric/math/fabs). \param arg operand \return absolute value of \a arg

Source from the content-addressed store, hash-verified

2732 /// \param arg operand
2733 /// \return absolute value of \a arg
2734 inline HALF_CONSTEXPR half abs(half arg) { return fabs(arg); }
2735
2736 /// Remainder of division.
2737 /// **See also:** Documentation for [std::fmod](https://en.cppreference.com/w/cpp/numeric/math/fmod).

Callers 3

float2half_implFunction · 0.70
log2Function · 0.70
logbFunction · 0.70

Calls 1

fabsFunction · 0.85

Tested by

no test coverage detected