Functions

lo-mappers.h File Reference

#include <limits>
#include "oct-cmplx.h"
#include "lo-math.h"
Include dependency graph for lo-mappers.h:

Go to the source code of this file.

Functions

OCTAVE_API Complex acos (const Complex &x)
OCTAVE_API Complex acosh (const Complex &x)
float arg (float x)
double arg (double x)
OCTAVE_API Complex asin (const Complex &x)
OCTAVE_API Complex asinh (const Complex &x)
OCTAVE_API Complex atan (const Complex &x)
OCTAVE_API Complex atanh (const Complex &x)
template<typename T >
std::complex< T > ceil (const std::complex< T > &x)
float conj (float x)
double conj (double x)
OCTAVE_API double D_NINT (double x)
OCTAVE_API float F_NINT (float x)
float fix (float x)
template<typename T >
std::complex< T > fix (const std::complex< T > &x)
double fix (double x)
template<typename T >
std::complex< T > floor (const std::complex< T > &x)
double imag (double)
float imag (float)
OCTAVE_API int NINT (double x)
OCTAVE_API int NINT (float x)
OCTAVE_API octave_idx_type NINTbig (float x)
OCTAVE_API octave_idx_type NINTbig (double x)
OCTAVE_API bool octave_is_NA (const Complex &x)
OCTAVE_API bool octave_is_NA (double x)
OCTAVE_API bool octave_is_NA (float x)
OCTAVE_API bool octave_is_NaN_or_NA (const Complex &x)
OCTAVE_API bool octave_is_NaN_or_NA (double x) GCC_ATTR_DEPRECATED
OCTAVE_API bool octave_is_NaN_or_NA (float x) GCC_ATTR_DEPRECATED
OCTAVE_API Complex rc_acos (double)
OCTAVE_API FloatComplex rc_acos (float)
OCTAVE_API FloatComplex rc_acosh (float)
OCTAVE_API Complex rc_acosh (double)
OCTAVE_API Complex rc_asin (double)
OCTAVE_API FloatComplex rc_asin (float)
OCTAVE_API Complex rc_atanh (double)
OCTAVE_API FloatComplex rc_atanh (float)
OCTAVE_API Complex rc_log (double)
OCTAVE_API FloatComplex rc_log (float)
OCTAVE_API Complex rc_log10 (double)
OCTAVE_API FloatComplex rc_log10 (float)
OCTAVE_API FloatComplex rc_log2 (float)
OCTAVE_API Complex rc_log2 (double)
OCTAVE_API Complex rc_sqrt (double)
OCTAVE_API FloatComplex rc_sqrt (float)
double real (double x)
float real (float x)
OCTAVE_API double signum (double x)
template<typename T >
std::complex< T > signum (const std::complex< T > &x)
OCTAVE_API float signum (float x)
template<typename T >
X_NINT (T x)
float xceil (float x)
double xceil (double x)
OCTAVE_API float xcopysign (float x, float y)
OCTAVE_API double xcopysign (double x, double y)
OCTAVE_API double xexp2 (double x)
OCTAVE_API float xexp2 (float x)
OCTAVE_API bool xfinite (double x)
OCTAVE_API bool xfinite (float x)
template<typename T >
bool xfinite (const std::complex< T > &x)
OCTAVE_API double xfloor (double x)
float xfloor (float x)
template<typename T >
bool xisinf (const std::complex< T > &x)
OCTAVE_API bool xisinf (double x)
OCTAVE_API bool xisinf (float x)
bool xisinteger (double x)
bool xisinteger (float x)
bool xisnan (char)
OCTAVE_API bool xisnan (float x)
OCTAVE_API bool xisnan (double x)
template<typename T >
bool xisnan (const std::complex< T > &x)
bool xisnan (bool)
OCTAVE_API Complex xlog2 (const Complex &x)
OCTAVE_API Complex xlog2 (const Complex &x, int &exp)
OCTAVE_API float xlog2 (float x, int &exp)
OCTAVE_API float xlog2 (float x)
OCTAVE_API double xlog2 (double x)
OCTAVE_API double xlog2 (double x, int &exp)
float xmax (float x, float y)
double xmax (double x, double y)
OCTAVE_API Complex xmax (const Complex &x, const Complex &y)
template<class T >
xmax (T x, T y)
float xmin (float x, float y)
template<class T >
xmin (T x, T y)
double xmin (double x, double y)
OCTAVE_API Complex xmin (const Complex &x, const Complex &y)
template<typename T >
xmod (T x, T y)
OCTAVE_API bool xnegative_sign (double x)
OCTAVE_API bool xnegative_sign (float x)
bool xpositive_sign (float x)
bool xpositive_sign (double x)
template<typename T >
xrem (T x, T y)
template<typename T >
std::complex< T > xround (const std::complex< T > &x)
OCTAVE_API double xround (double x)
OCTAVE_API float xround (float x)
template<typename T >
std::complex< T > xroundb (const std::complex< T > &x)
OCTAVE_API double xroundb (double x)
OCTAVE_API float xroundb (float x)
OCTAVE_API double xtrunc (double x)
OCTAVE_API float xtrunc (float x)

Function Documentation

OCTAVE_API Complex acos ( const Complex x  ) 
OCTAVE_API Complex acosh ( const Complex x  ) 
float arg ( float  x  )  [inline]

Definition at line 123 of file lo-mappers.h.

References f.

double arg ( double  x  )  [inline]
OCTAVE_API Complex asin ( const Complex x  ) 
OCTAVE_API Complex asinh ( const Complex x  ) 
OCTAVE_API Complex atan ( const Complex x  ) 
OCTAVE_API Complex atanh ( const Complex x  ) 
template<typename T >
std::complex<T> ceil ( const std::complex< T > &  x  ) 
float conj ( float  x  )  [inline]

Definition at line 124 of file lo-mappers.h.

double conj ( double  x  )  [inline]

Definition at line 38 of file lo-mappers.h.

OCTAVE_API double D_NINT ( double  x  )  [inline]
OCTAVE_API float F_NINT ( float  x  )  [inline]

Definition at line 241 of file lo-mappers.h.

References X_NINT().

float fix ( float  x  )  [inline]

Definition at line 125 of file lo-mappers.h.

References xtrunc().

template<typename T >
std::complex<T> fix ( const std::complex< T > &  x  ) 

Definition at line 268 of file lo-mappers.h.

References fix(), imag(), and real.

double fix ( double  x  )  [inline]
template<typename T >
std::complex<T> floor ( const std::complex< T > &  x  ) 
double imag ( double   )  [inline]

Definition at line 40 of file lo-mappers.h.

float imag ( float   )  [inline]

Definition at line 126 of file lo-mappers.h.

OCTAVE_API int NINT ( double  x  ) 
OCTAVE_API int NINT ( float  x  ) 

Definition at line 637 of file lo-mappers.cc.

References max(), and min().

OCTAVE_API octave_idx_type NINTbig ( float  x  ) 

Definition at line 615 of file lo-mappers.cc.

References max(), and min().

OCTAVE_API octave_idx_type NINTbig ( double  x  ) 
OCTAVE_API bool octave_is_NA ( const Complex x  ) 

Definition at line 457 of file lo-mappers.cc.

References imag(), octave_is_NA(), and real.

OCTAVE_API bool octave_is_NA ( double  x  ) 
OCTAVE_API bool octave_is_NA ( float  x  ) 

Definition at line 397 of file lo-mappers.cc.

References lo_ieee_is_NA.

OCTAVE_API bool octave_is_NaN_or_NA ( const Complex x  ) 

Definition at line 463 of file lo-mappers.cc.

References imag(), real, and xisnan().

OCTAVE_API bool octave_is_NaN_or_NA ( double  x  ) 

Definition at line 183 of file lo-mappers.cc.

References lo_ieee_isnan.

OCTAVE_API bool octave_is_NaN_or_NA ( float  x  ) 

Definition at line 403 of file lo-mappers.cc.

References lo_ieee_isnan.

OCTAVE_API Complex rc_acos ( double   ) 
OCTAVE_API FloatComplex rc_acos ( float   ) 

Definition at line 491 of file lo-mappers.cc.

References acos().

OCTAVE_API FloatComplex rc_acosh ( float   ) 

Definition at line 503 of file lo-mappers.cc.

References acosh(), and acoshf().

OCTAVE_API Complex rc_acosh ( double   ) 
OCTAVE_API Complex rc_asin ( double   ) 
OCTAVE_API FloatComplex rc_asin ( float   ) 

Definition at line 515 of file lo-mappers.cc.

References asin().

OCTAVE_API Complex rc_atanh ( double   ) 
OCTAVE_API FloatComplex rc_atanh ( float   ) 

Definition at line 527 of file lo-mappers.cc.

References atanh(), and atanhf().

OCTAVE_API Complex rc_log ( double   ) 
OCTAVE_API FloatComplex rc_log ( float   ) 

Definition at line 540 of file lo-mappers.cc.

OCTAVE_API Complex rc_log10 ( double   ) 
OCTAVE_API FloatComplex rc_log10 ( float   ) 

Definition at line 568 of file lo-mappers.cc.

OCTAVE_API FloatComplex rc_log2 ( float   ) 

Definition at line 554 of file lo-mappers.cc.

References xlog2().

OCTAVE_API Complex rc_log2 ( double   ) 
OCTAVE_API Complex rc_sqrt ( double   ) 
OCTAVE_API FloatComplex rc_sqrt ( float   ) 

Definition at line 581 of file lo-mappers.cc.

References f.

double real ( double  x  )  [inline]

Definition at line 41 of file lo-mappers.h.

float real ( float  x  )  [inline]

Definition at line 127 of file lo-mappers.h.

OCTAVE_API double signum ( double  x  ) 
template<typename T >
std::complex<T> signum ( const std::complex< T > &  x  ) 

Definition at line 303 of file lo-mappers.h.

References abs().

OCTAVE_API float signum ( float  x  ) 

Definition at line 300 of file lo-mappers.cc.

References octave_Float_NaN, and xisnan().

template<typename T >
T X_NINT ( x  ) 

Definition at line 235 of file lo-mappers.h.

References xfloor(), xisinf(), and xisnan().

Referenced by D_NINT(), F_NINT(), xmod(), and xrem().

float xceil ( float  x  )  [inline]

Definition at line 121 of file lo-mappers.h.

double xceil ( double  x  )  [inline]

Definition at line 35 of file lo-mappers.h.

References ceil().

Referenced by ceil().

OCTAVE_API float xcopysign ( float  x,
float  y 
)

Definition at line 277 of file lo-mappers.cc.

OCTAVE_API double xcopysign ( double  x,
double  y 
)

Definition at line 52 of file lo-mappers.cc.

Referenced by xmod(), and xrem().

OCTAVE_API double xexp2 ( double  x  ) 

Definition at line 121 of file lo-mappers.cc.

Referenced by base_det< T >::base_det().

OCTAVE_API float xexp2 ( float  x  ) 

Definition at line 341 of file lo-mappers.cc.

OCTAVE_API bool xfinite ( double  x  ) 
OCTAVE_API bool xfinite ( float  x  ) 

Definition at line 382 of file lo-mappers.cc.

References lo_ieee_finite.

template<typename T >
bool xfinite ( const std::complex< T > &  x  ) 

Definition at line 254 of file lo-mappers.h.

References imag(), real, and xfinite().

OCTAVE_API double xfloor ( double  x  ) 

Definition at line 57 of file lo-mappers.cc.

References floor().

Referenced by floor(), X_NINT(), and xmod().

float xfloor ( float  x  )  [inline]

Definition at line 122 of file lo-mappers.h.

template<typename T >
bool xisinf ( const std::complex< T > &  x  ) 

Definition at line 261 of file lo-mappers.h.

References imag(), real, and xisinf().

OCTAVE_API bool xisinf ( double  x  ) 
OCTAVE_API bool xisinf ( float  x  ) 

Definition at line 390 of file lo-mappers.cc.

References lo_ieee_isinf.

bool xisinteger ( double  x  )  [inline]
bool xisinteger ( float  x  )  [inline]

Definition at line 212 of file lo-mappers.h.

References xfinite(), and xround().

bool xisnan ( char   )  [inline]

Definition at line 53 of file lo-mappers.h.

OCTAVE_API bool xisnan ( float  x  ) 

Definition at line 374 of file lo-mappers.cc.

References lo_ieee_isnan.

OCTAVE_API bool xisnan ( double  x  ) 

Definition at line 154 of file lo-mappers.cc.

References lo_ieee_isnan.

Referenced by SparseMatrix::all_elements_are_int_or_inf_or_nan(), Range::all_elements_are_ints(), SparseMatrix::any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_nan(), SparseComplexMatrix::any_element_is_nan(), octave_scalar::bool_array_value(), octave_float_complex::bool_array_value(), octave_float_scalar::bool_array_value(), octave_complex::bool_array_value(), octave_scalar::bool_value(), octave_float_complex::bool_value(), octave_float_scalar::bool_value(), octave_complex::bool_value(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), check_limit_vals(), FloatMatrix::column_max(), FloatComplexMatrix::column_max(), Matrix::column_max(), ComplexMatrix::column_max(), FloatMatrix::column_min(), FloatComplexMatrix::column_min(), Matrix::column_min(), ComplexMatrix::column_min(), FloatNDArray::concat(), NDArray::concat(), charNDArray::concat(), convert_cdata_2(), octave_int_base< T >::convert_real(), octave_scalar::convert_to_str_internal(), octave_sparse_matrix::convert_to_str_internal(), octave_matrix::convert_to_str_internal(), octave_float_matrix::convert_to_str_internal(), octave_float_scalar::convert_to_str_internal(), DEFUN(), DEFUN_DLD(), DEFUNOP(), SparseMatrix::determinant(), SparseComplexMatrix::determinant(), do_fft(), do_fft2(), do_fftn(), do_rand(), octave_rand::do_scalar(), drawcn(), SparseMatrix::factorize(), SparseComplexMatrix::factorize(), octave_rand::fill(), FloatMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), Matrix::fsolve(), SparseComplexMatrix::fsolve(), ComplexMatrix::fsolve(), Array< float >::is_sorted(), Array< double >::is_sorted(), octave_base_scalar< ST >::is_true(), jcobi(), FloatMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), Matrix::ltsolve(), SparseComplexMatrix::ltsolve(), ComplexMatrix::ltsolve(), make_graphics_object(), octave_scalar::map(), octave_sparse_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex::map(), SparseMatrix::max(), SparseComplexMatrix::max(), max_axes_scale(), SparseMatrix::min(), SparseComplexMatrix::min(), mx_inline_any_nan(), nan_ascending_compare(), nan_descending_compare(), octave_base_value::nint_value(), octave_is_NaN_or_NA(), pr_any_float(), pr_max_internal(), pr_min_internal(), rational_approx(), rc_lgamma(), FloatMatrix::row_max(), FloatComplexMatrix::row_max(), Matrix::row_max(), ComplexMatrix::row_max(), FloatMatrix::row_min(), FloatComplexMatrix::row_min(), Matrix::row_min(), ComplexMatrix::row_min(), safe_comparator(), save_mat5_array_length(), set_format(), signum(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), FloatComplexNDArray::too_large_for_float(), FloatComplexMatrix::too_large_for_float(), ComplexNDArray::too_large_for_float(), ComplexMatrix::too_large_for_float(), FloatMatrix::utsolve(), FloatComplexMatrix::utsolve(), SparseMatrix::utsolve(), Matrix::utsolve(), SparseComplexMatrix::utsolve(), ComplexMatrix::utsolve(), X_NINT(), xgamma(), xis_int_or_inf_or_nan(), xis_true(), xisnan(), xlgamma(), xmax(), xmin(), and xtoo_large_for_float().

template<typename T >
bool xisnan ( const std::complex< T > &  x  ) 

Definition at line 247 of file lo-mappers.h.

References imag(), real, and xisnan().

bool xisnan ( bool   )  [inline]

Definition at line 52 of file lo-mappers.h.

OCTAVE_API Complex xlog2 ( const Complex x  ) 

Definition at line 329 of file lo-mappers.cc.

OCTAVE_API Complex xlog2 ( const Complex x,
int exp 
)

Definition at line 363 of file lo-mappers.cc.

References abs(), and xlog2().

OCTAVE_API float xlog2 ( float  x,
int exp 
)

Definition at line 357 of file lo-mappers.cc.

OCTAVE_API float xlog2 ( float  x  ) 

Definition at line 313 of file lo-mappers.cc.

OCTAVE_API double xlog2 ( double  x  ) 
OCTAVE_API double xlog2 ( double  x,
int exp 
)

Definition at line 137 of file lo-mappers.cc.

float xmax ( float  x,
float  y 
) [inline]

Definition at line 166 of file lo-mappers.h.

References xisnan().

double xmax ( double  x,
double  y 
) [inline]

Definition at line 100 of file lo-mappers.h.

References xisnan().

OCTAVE_API Complex xmax ( const Complex x,
const Complex y 
)

Definition at line 479 of file lo-mappers.cc.

References abs(), and xisnan().

Referenced by max(), max_axes_scale(), and opengl_renderer::opengl_renderer().

template<class T >
T xmax ( x,
y 
) [inline]

Definition at line 85 of file lo-mappers.h.

float xmin ( float  x,
float  y 
) [inline]

Definition at line 160 of file lo-mappers.h.

References xisnan().

template<class T >
T xmin ( x,
y 
) [inline]

Definition at line 79 of file lo-mappers.h.

double xmin ( double  x,
double  y 
) [inline]

Definition at line 94 of file lo-mappers.h.

References xisnan().

OCTAVE_API Complex xmin ( const Complex x,
const Complex y 
)

Definition at line 473 of file lo-mappers.cc.

References abs(), and xisnan().

Referenced by DEFUN_DLD(), min(), normalized_aspectratios(), and opengl_renderer::opengl_renderer().

template<typename T >
T xmod ( x,
y 
)

Definition at line 312 of file lo-mappers.h.

References abs(), X_NINT(), xcopysign(), and xfloor().

OCTAVE_API bool xnegative_sign ( double  x  ) 
OCTAVE_API bool xnegative_sign ( float  x  ) 

Definition at line 593 of file lo-mappers.cc.

References __lo_ieee_float_signbit().

bool xpositive_sign ( float  x  )  [inline]

Definition at line 223 of file lo-mappers.h.

References xnegative_sign().

bool xpositive_sign ( double  x  )  [inline]
template<typename T >
T xrem ( x,
y 
)

Definition at line 359 of file lo-mappers.h.

References abs(), X_NINT(), xcopysign(), and xtrunc().

Referenced by DEFUN().

template<typename T >
std::complex<T> xround ( const std::complex< T > &  x  ) 

Definition at line 289 of file lo-mappers.h.

References imag(), real, and xround().

OCTAVE_API double xround ( double  x  ) 
OCTAVE_API float xround ( float  x  ) 

Definition at line 283 of file lo-mappers.cc.

template<typename T >
std::complex<T> xroundb ( const std::complex< T > &  x  ) 

Definition at line 296 of file lo-mappers.h.

References imag(), real, and xroundb().

OCTAVE_API double xroundb ( double  x  ) 
OCTAVE_API float xroundb ( float  x  ) 

Definition at line 289 of file lo-mappers.cc.

References xround(), and xtrunc().

OCTAVE_API double xtrunc ( double  x  ) 

Definition at line 46 of file lo-mappers.cc.

Referenced by fix(), xrem(), and xroundb().

OCTAVE_API float xtrunc ( float  x  ) 

Definition at line 271 of file lo-mappers.cc.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines