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

Function fabs

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

Absolute value. See also:** Documentation for [std::fabs](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

2726 /// \param arg operand
2727 /// \return absolute value of \a arg
2728 inline HALF_CONSTEXPR half fabs(half arg) { return half(detail::binary, arg.data_&0x7FFF); }
2729
2730 /// Absolute value.
2731 /// **See also:** Documentation for [std::abs](https://en.cppreference.com/w/cpp/numeric/math/fabs).

Callers 3

DoubleNearPredFormatFunction · 0.85
Cpp>Method · 0.85
absFunction · 0.85

Calls 1

halfClass · 0.85

Tested by 1

DoubleNearPredFormatFunction · 0.68