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

Function round

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

Nearest integer. See also:** Documentation for [std::round](https://en.cppreference.com/w/cpp/numeric/math/round). \param arg half to round \return nearest integer, rounded away from zero in half-way cases \exception FE_INVALID for signaling NaN \exception FE_INEXACT if value had to be rounded

Source from the content-addressed store, hash-verified

4067 /// \exception FE_INVALID for signaling NaN
4068 /// \exception FE_INEXACT if value had to be rounded
4069 inline half round(half arg) { return half(detail::binary, detail::integral<std::round_to_nearest,false,true>(arg.data_)); }
4070
4071 /// Nearest integer.
4072 /// **See also:** Documentation for [std::lround](https://en.cppreference.com/w/cpp/numeric/math/round).

Callers 2

Cpp>Method · 0.50
Cuda>Method · 0.50

Calls 1

halfClass · 0.85

Tested by

no test coverage detected