![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
roundToNearestIntegral function; returns the integral value closest to input value More...
#include <IPSDKUtil/IPSDKUtilExports.h>#include <IPSDKUtil/InstructionSet/Arithmetic/detail/RoundToNearestIntegralPack.h>#include <IPSDKUtil/InstructionSet/IS2Pack.h>#include <IPSDKUtil/Tools/ForceInline.h>Go to the source code of this file.
Namespaces | |
| ipsdk | |
| Main namespace for IPSDK library. | |
| ipsdk::simd | |
| Namespace agregating IPSDK SIMD routines and classes. | |
roundToNearestIntegral function; returns the integral value closest to input value
given a pack P, with P = {p1, ..., pn}, roundToNearestIntegral(P) returns R, with R ={ roundToNearestIntegral(p1), ..., roundToNearestIntegral(pn)}
ex.: roundToNearestIntegral(P) = R, with P = {1.2, 1.5, 1.9, -3.2, -3.5, -3.8, 0.0, 10.0} and R = {1, 2, 2, -3, -4, -4, 0, 10}
1.8.14