MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / trunc

Method trunc

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

Truncation implementation. \param arg value to round \return rounded value

Source from the content-addressed store, hash-verified

1648 /// \param arg value to round
1649 /// \return rounded value
1650 static half trunc(half arg) { return half(binary, round_half<std::round_toward_zero>(arg.data_)); }
1651
1652 /// Nearest integer implementation.
1653 /// \param arg value to round

Callers

nothing calls this directly

Calls 1

halfClass · 0.70

Tested by

no test coverage detected