MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / fabs

Function fabs

samples/common/half.h:2871–2874  ·  view source on GitHub ↗

Absolute value. \param arg operand \return absolute value of \a arg template typename enable ::type fabs(T arg) { return unary_specialized ::fabs(arg); }

Source from the content-addressed store, hash-verified

2869/// \return absolute value of \a arg
2870// template<typename T> typename enable<T,T>::type fabs(T arg) { return unary_specialized<T>::fabs(arg); }
2871inline half fabs(half arg)
2872{
2873 return unary_specialized<half>::fabs(arg);
2874}
2875inline expr fabs(expr arg)
2876{
2877 return unary_specialized<expr>::fabs(arg);

Callers 5

remainderMethod · 0.70
remquoMethod · 0.70
fabsMethod · 0.70
absFunction · 0.70
verifyOutputMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected