Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6628 Discussions

## Infinity

Beginner
2,046 Views
Hello everybody,
Does anybody know how to represent infinity in IPP? I'm trying to generate a 3D gaussian bell that looks like a ridge: in one dimension it would look like a normal gaussian bell, in the perpendicular dimension it would look like a rectangle. Mathematically you do this by having the variance (width of the bell) of one of the dimensions set to infinity (in Matlab you have the keyword "inf")... having a large number almost does the job but you still won't get a perfect rectangle.
Any suggestions will be very much appreciated.
Boris
2 Replies
Employee
2,046 Views

Hi Boris,

Not sure if it helps, In ippdef.h, thereis some definition about the value of IPP data type.

#if defined( _WIN32 ) || defined ( _WIN64 )
#define IPP_MAX_64S ( 9223372036854775807i64 )
#define IPP_MIN_64S (-9223372036854775807i64 - 1 )
#else
#define IPP_MAX_64S ( 9223372036854775807LL )
#define IPP_MIN_64S (-9223372036854775807LL - 1 )
#endif

#define IPP_MINABS_32F ( 1.175494351e-38f )
#define IPP_MAXABS_32F ( 3.402823466e+38f )
#define IPP_EPS_32F ( 1.192092890e-07f )
#define IPP_MINABS_64F ( 2.2250738585072014e-308 )
#define IPP_MAXABS_64F ( 1.7976931348623158e+308 )
#define IPP_EPS_64F ( 2.2204460492503131e-016 )

Regards,
Ying

Beginner
2,045 Views
Hi Ying,
sorry for my delay replying your tip... thanks, that's what I needed.
Boris