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

Function trunc

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

Nearest integer not greater in magnitude than half value. \param arg half to round \return nearest integer not greater in magnitude than \a arg template typename enable ::type trunc(T arg) { return functions::trunc(arg); }

Source from the content-addressed store, hash-verified

2567 /// \return nearest integer not greater in magnitude than \a arg
2568// template<typename T> typename enable<half,T>::type trunc(T arg) { return functions::trunc(arg); }
2569 inline half trunc(half arg) { return functions::trunc(arg); }
2570 inline half trunc(expr arg) { return functions::trunc(arg); }
2571
2572 /// Nearest integer.

Callers 5

TESTFunction · 0.85
TESTFunction · 0.85
conv_imageFunction · 0.85
meanShiftFunction · 0.85
timeitFunction · 0.85

Calls

no outgoing calls

Tested by 1

conv_imageFunction · 0.68