Community
cancel
Showing results for 
Search instead for 
Did you mean: 
apolo74
Beginner
587 Views

Infinity

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
0 Kudos
2 Replies
Ying_H_Intel
Employee
587 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

apolo74
Beginner
587 Views

Hi Ying,
sorry for my delay replying your tip... thanks, that's what I needed.
Boris
Reply