comparison liboctave/numeric/lo-specfun.h @ 21231:5f318c8ec634

eliminate feature tests from lo-specfun.h * lo-specfun.h, lo-specfun.cc (xacosh, xasinh, xatanh, xerf, xerfc xexpm1, xlog1p, xcbrt): Rename to have 'x' prefix. Conditionally define in .cc file. Change all uses Move complex versions of acosh, asinh, and atanh functions here.
author John W. Eaton <jwe@octave.org>
date Tue, 09 Feb 2016 04:15:50 -0500
parents 538b57866b90
children 1473547f50f5
comparison
equal deleted inserted replaced
21230:721539013db4 21231:5f318c8ec634
39 class FloatComplexNDArray; 39 class FloatComplexNDArray;
40 class FloatRowVector; 40 class FloatRowVector;
41 class FloatComplexColumnVector; 41 class FloatComplexColumnVector;
42 class Range; 42 class Range;
43 43
44 #if ! defined (HAVE_ACOSH) 44 extern OCTAVE_API double xacosh (double);
45 extern OCTAVE_API double acosh (double); 45 extern OCTAVE_API float xacosh (float);
46 #endif 46 extern OCTAVE_API Complex xacosh (const Complex& x);
47 47 extern OCTAVE_API FloatComplex xacosh (const FloatComplex& x);
48 #if ! defined (HAVE_ASINH) 48
49 extern OCTAVE_API double asinh (double); 49 extern OCTAVE_API double xasinh (double);
50 #endif 50 extern OCTAVE_API float xasinh (float);
51 51 extern OCTAVE_API Complex xasinh (const Complex& x);
52 #if ! defined (HAVE_ATANH) 52 extern OCTAVE_API FloatComplex xasinh (const FloatComplex& x);
53 extern OCTAVE_API double atanh (double); 53
54 #endif 54 extern OCTAVE_API double xatanh (double);
55 55 extern OCTAVE_API float xatanh (float);
56 #if ! defined (HAVE_ERF) 56 extern OCTAVE_API Complex xatanh (const Complex& x);
57 extern OCTAVE_API double erf (double); 57 extern OCTAVE_API FloatComplex xatanh (const FloatComplex& x);
58 #endif 58
59 extern OCTAVE_API Complex erf (const Complex& x); 59 extern OCTAVE_API double xerf (double);
60 extern OCTAVE_API FloatComplex erf (const FloatComplex& x); 60 extern OCTAVE_API float xerf (float);
61 61 extern OCTAVE_API Complex xerf (const Complex& x);
62 #if ! defined (HAVE_ERFC) 62 extern OCTAVE_API FloatComplex xerf (const FloatComplex& x);
63 extern OCTAVE_API double erfc (double); 63
64 #endif 64 extern OCTAVE_API double xerfc (double);
65 extern OCTAVE_API Complex erfc (const Complex& x); 65 extern OCTAVE_API float xerfc (float);
66 extern OCTAVE_API FloatComplex erfc (const FloatComplex& x); 66 extern OCTAVE_API Complex xerfc (const Complex& x);
67 67 extern OCTAVE_API FloatComplex xerfc (const FloatComplex& x);
68 #if ! defined (HAVE_ACOSHF) 68
69 extern OCTAVE_API float acoshf (float); 69 extern OCTAVE_API double xexpm1 (double x);
70 #endif 70 extern OCTAVE_API Complex xexpm1 (const Complex& x);
71 71
72 #if ! defined (HAVE_ASINHF) 72 extern OCTAVE_API float xexpm1 (float x);
73 extern OCTAVE_API float asinhf (float); 73 extern OCTAVE_API FloatComplex xexpm1 (const FloatComplex& x);
74 #endif 74
75 75 extern OCTAVE_API double xlog1p (double x);
76 #if ! defined (HAVE_ATANHF) 76 extern OCTAVE_API Complex xlog1p (const Complex& x);
77 extern OCTAVE_API float atanhf (float); 77
78 #endif 78 extern OCTAVE_API float xlog1p (float x);
79 79 extern OCTAVE_API FloatComplex xlog1p (const FloatComplex& x);
80 #if ! defined (HAVE_ERFF) 80
81 extern OCTAVE_API float erff (float); 81 extern OCTAVE_API double xcbrt (double x);
82 #endif 82 extern OCTAVE_API float xcbrt (float x);
83
84 #if ! defined (HAVE_ERFCF)
85 extern OCTAVE_API float erfcf (float);
86 #endif
87
88 #if ! defined (HAVE_EXPM1)
89 extern OCTAVE_API double expm1 (double x);
90 #endif
91 extern OCTAVE_API Complex expm1 (const Complex& x);
92
93 #if ! defined (HAVE_EXPM1F)
94 extern OCTAVE_API float expm1f (float x);
95 #endif
96 extern OCTAVE_API FloatComplex expm1 (const FloatComplex& x);
97
98 #if ! defined (HAVE_LOG1P)
99 extern OCTAVE_API double log1p (double x);
100 #endif
101 extern OCTAVE_API Complex log1p (const Complex& x);
102
103 #if ! defined (HAVE_LOG1PF)
104 extern OCTAVE_API float log1pf (float x);
105 #endif
106 extern OCTAVE_API FloatComplex log1p (const FloatComplex& x);
107
108 #if ! defined (HAVE_CBRT)
109 extern OCTAVE_API double cbrt (double x);
110 #endif
111
112 #if ! defined (HAVE_CBRTF)
113 extern OCTAVE_API float cbrtf (float x);
114 #endif
115 83
116 extern OCTAVE_API double xgamma (double x); 84 extern OCTAVE_API double xgamma (double x);
117 extern OCTAVE_API double xlgamma (double x); 85 extern OCTAVE_API double xlgamma (double x);
118 extern OCTAVE_API Complex rc_lgamma (double x); 86 extern OCTAVE_API Complex rc_lgamma (double x);
119 87