HAVE_FLOAT_FUNCS on HP-UX 11.23/PA

Albert Chin numpy-discussion at mlists.thewrittenword.com
Thu Nov 16 14:48:53 CST 2006


HP-UX 11.23/PA has expf() but not ceilf(). numpy/core/setup.py has:
  FUNCTIONS_TO_CHECK = [
      ('expl', 'HAVE_LONGDOUBLE_FUNCS'),
      ('expf', 'HAVE_FLOAT_FUNCS'),
      ('log1p', 'HAVE_LOG1P'),
      ('expm1', 'HAVE_EXPM1'),
      ('asinh', 'HAVE_INVERSE_HYPERBOLIC'),
      ('atanhf', 'HAVE_INVERSE_HYPERBOLIC_FLOAT'),
      ('atanhl', 'HAVE_INVERSE_HYPERBOLIC_LONGDOUBLE'),
      ('isnan', 'HAVE_ISNAN'),
      ('isinf', 'HAVE_ISINF'),
      ('rint', 'HAVE_RINT'),
      ]

So, on this platform, HAVE_FLOAT_FUNCS isn't defined. This causes a
problem because the local numpy definition for ceilf() isn't used,
leading to compiler errors.

What's the best way to solve this? Replace "expf" above with "ceilf"
even though expf() is present on this platform? My preference is to
explicitly list all the functions that need to be checked and define
HAVE_<func> accordingly.

-- 
albert chin (china at thewrittenword.com)




More information about the Numpy-discussion mailing list