26 #if defined (HAVE_CONFIG_H)
143 return std::log (
x) / M_LN2;
149 return std::log (
x) /
static_cast<float> (M_LN2);
167 double ax = std::abs (
x);
168 double lax =
log2 (ax, exp);
169 return (ax != lax) ? (
x / ax) * lax :
x;
175 float ax = std::abs (
x);
176 float lax =
log2 (ax, exp);
177 return (ax != lax) ? (
x / ax) * lax :
x;
190 static const double out_of_range_top
192 if (
x >= out_of_range_top)
204 static const float out_of_range_top
206 if (
x >= out_of_range_top)
223 return static_cast<int> ((
x > 0.0) ? (
x + 0.5) : (
x - 0.5));
229 static const float out_of_range_top
231 if (
x >= out_of_range_top)
236 return static_cast<int> ((
x > 0.0f) ? (
x + 0.5f) : (
x - 0.5f));
299 return x < 0.0f ?
FloatComplex (std::log (-
x),
static_cast<float> (M_PI))
306 constexpr
double PI_LN2 = 4.53236014182719380962;
313 constexpr
float PI_LN2 = 4.53236014182719380962f;
321 constexpr
double PI_LN10 = 1.36437635384184134748;
328 constexpr
float PI_LN10 = 1.36437635384184134748f;
346 OCTAVE_END_NAMESPACE(math)
347 OCTAVE_END_NAMESPACE(
octave)
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