MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / absdiff

Function absdiff

dependency/densecrf3d/include/Eigen/src/Core/MathFunctions.h:1295–1299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293
1294template<typename T>
1295EIGEN_DEVICE_FUNC
1296EIGEN_ALWAYS_INLINE T absdiff(const T& x, const T& y)
1297{
1298 return x > y ? x - y : y - x;
1299}
1300template<>
1301EIGEN_DEVICE_FUNC
1302EIGEN_ALWAYS_INLINE float absdiff(const float& x, const float& y)

Callers 1

operator()Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected