MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / abs

Function abs

include/half_float/half.hpp:2735–2735  ·  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

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

Callers 13

computeMethod · 0.85
absMethod · 0.85
vec_tanhFunction · 0.85
amaxMethod · 0.85
TEST_FFunction · 0.85
abs_diffFunction · 0.85
float2half_implFunction · 0.85
log2Function · 0.85
logbFunction · 0.85
apply_maskMethod · 0.85

Calls 1

fabsFunction · 0.85

Tested by 2

TEST_FFunction · 0.68