26 #if defined (HAVE_CONFIG_H)
141 return std::log (
x) / M_LN2;
147 return std::log (
x) /
static_cast<float> (M_LN2);
166 double lax =
log2 (ax, exp);
167 return (ax != lax) ? (
x / ax) * lax :
x;
174 float lax =
log2 (ax, exp);
175 return (ax != lax) ? (
x / ax) * lax :
x;
186 static const double out_of_range_top
188 if (
x >= out_of_range_top)
200 static const float out_of_range_top
202 if (
x >= out_of_range_top)
219 return static_cast<int> ((
x > 0.0) ? (
x + 0.5) : (
x - 0.5));
225 static const float out_of_range_top
227 if (
x >= out_of_range_top)
232 return static_cast<int> ((
x > 0.0f) ? (
x + 0.5f) : (
x - 0.5f));
295 return x < 0.0f ?
FloatComplex (std::log (-
x),
static_cast<float> (M_PI))
302 constexpr
double PI_LN2 = 4.53236014182719380962;
309 constexpr
float PI_LN2 = 4.53236014182719380962f;
317 constexpr
double PI_LN10 = 1.36437635384184134748;
324 constexpr
float PI_LN10 = 1.36437635384184134748f;
ComplexColumnVector conj(const ComplexColumnVector &a)
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
ColumnVector real(const ComplexColumnVector &a)
ColumnVector imag(const ComplexColumnVector &a)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
int __lo_ieee_signbit(double x)
int __lo_ieee_float_signbit(float x)
bool is_NaN_or_NA(const Complex &x)
Complex log2(const Complex &x)
Complex rc_acosh(double x)
Complex rc_atanh(double x)
Complex asin(const Complex &x)
octave_idx_type nint_big(double x)
Complex rc_asin(double x)
bool negative_sign(double x)
Complex rc_acos(double x)
Complex rc_sqrt(double x)
Complex rc_log10(double x)
Complex acos(const Complex &x)
Complex rc_log2(double x)
double frexp(double x, int *expptr)
F77_RET_T const F77_DBLE * x
double octave_frexp_wrapper(double x, int *expptr)
float octave_frexpf_wrapper(float x, int *expptr)
std::complex< double > Complex
std::complex< float > FloatComplex