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

Function floor

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

Nearest integer not greater than half value. See also:** Documentation for [std::floor](https://en.cppreference.com/w/cpp/numeric/math/floor). \param arg half to round \return nearest integer not greater than \a arg \exception FE_INVALID for signaling NaN \exception FE_INEXACT if value had to be rounded

Source from the content-addressed store, hash-verified

4051 /// \exception FE_INVALID for signaling NaN
4052 /// \exception FE_INEXACT if value had to be rounded
4053 inline half floor(half arg) { return half(detail::binary, detail::integral<std::round_toward_neg_infinity,true,true>(arg.data_)); }
4054
4055 /// Nearest integer not greater in magnitude than half value.
4056 /// **See also:** Documentation for [std::trunc](https://en.cppreference.com/w/cpp/numeric/math/trunc).

Callers 3

Cpp>Method · 0.50
Cuda>Method · 0.50
PoolingHandleMethod · 0.50

Calls 1

halfClass · 0.85

Tested by

no test coverage detected