GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
lo-mappers.h File Reference
#include <limits>
#include "oct-cmplx.h"
#include "lo-math.h"
Include dependency graph for lo-mappers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OCTAVE_API Complex acos (const Complex &x)
OCTAVE_API Complex acosh (const Complex &x)
double arg (double x)
float arg (float 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)
double conj (double x)
float conj (float x)
OCTAVE_API double D_NINT (double x)
OCTAVE_API float F_NINT (float x)
double fix (double x)
float fix (float x)
template<typename T >
std::complex< T > fix (const std::complex< T > &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 (double x)
OCTAVE_API octave_idx_type NINTbig (float x)
OCTAVE_API bool octave_is_NA (double x)
OCTAVE_API bool octave_is_NA (const Complex &x)
OCTAVE_API bool octave_is_NA (float x)
OCTAVE_API bool octave_is_NaN_or_NA (double x) GCC_ATTR_DEPRECATED
OCTAVE_API bool octave_is_NaN_or_NA (const Complex &x)
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 Complex rc_acosh (double)
OCTAVE_API FloatComplex rc_acosh (float)
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 Complex rc_log2 (double)
OCTAVE_API FloatComplex rc_log2 (float)
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)
OCTAVE_API float signum (float x)
template<typename T >
std::complex< T > signum (const std::complex< T > &x)
template<typename T >
X_NINT (T x)
double xceil (double x)
float xceil (float x)
OCTAVE_API double xcopysign (double x, double y)
OCTAVE_API float xcopysign (float x, float 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)
OCTAVE_API float xfloor (float x)
OCTAVE_API bool xisinf (double x)
OCTAVE_API bool xisinf (float x)
template<typename T >
bool xisinf (const std::complex< T > &x)
bool xisinteger (double x)
bool xisinteger (float x)
bool xisnan (bool)
bool xisnan (char)
OCTAVE_API bool xisnan (double x)
OCTAVE_API bool xisnan (float x)
template<typename T >
bool xisnan (const std::complex< T > &x)
OCTAVE_API double xlog2 (double x)
OCTAVE_API Complex xlog2 (const Complex &x)
OCTAVE_API double xlog2 (double x, int &exp)
OCTAVE_API Complex xlog2 (const Complex &x, int &exp)
OCTAVE_API float xlog2 (float x)
OCTAVE_API float xlog2 (float x, int &exp)
template<class T >
xmax (T x, T y)
double xmax (double x, double y)
OCTAVE_API Complex xmax (const Complex &x, const Complex &y)
float xmax (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)
float xmin (float x, float 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 (double x)
bool xpositive_sign (float x)
template<typename T >
xrem (T x, T y)
OCTAVE_API double xround (double x)
OCTAVE_API float xround (float x)
template<typename T >
std::complex< T > xround (const std::complex< T > &x)
OCTAVE_API double xroundb (double x)
OCTAVE_API float xroundb (float x)
template<typename T >
std::complex< T > xroundb (const std::complex< T > &x)
template<typename T >
xsignbit (T 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)

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

double arg ( double  x)
inline

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

References atan2().

Referenced by cacai(), cacon(), jit_function::call(), casyi(), cbesh(), cbesi(), cbesj(), cbesk(), cffti1(), jit_convert_llvm::convert_loop(), crati(), cunhj(), cuni2(), cunk2(), cuoik(), HTMLDecoder::decodeLine(), DEFUN(), DEFUN_DLD(), main_window::display_release_notes(), jit_instruction::do_construct_ssa(), do_cumminmax_body(), do_cumminmax_red_op(), do_dbstack(), do_dbupdown(), do_fft(), do_fft2(), do_fftn(), octave_qt_link::do_file_dialog(), do_history(), do_minmax_body(), do_minmax_red_op(), do_minmax_red_op< boolNDArray >(), do_minmax_red_op< charNDArray >(), octave_qt_link::do_prompt_new_edit_file(), do_simple_cellfun(), do_sqrtm(), do_trilu(), dorth(), F__dump_symtab_info__(), F__sort_rows_idx__(), Faddpath(), Fatexit(), Fcomplex(), Fcumsum(), Fdblist(), Fdbstep(), Fdbtype(), Fdet(), Fdiary(), Fdisp(), Fecho(), Ffcntl(), Ffind(), Fhess(), Finv(), Fismatrix(), Fissorted(), Flu(), Fmore(), Fnproc(), Foctave_config_info(), Fpinv(), Frats(), Frmpath(), Fschur(), Fsort(), Fsparse(), Fsqrtm(), Fsum(), Fsvd(), Ftilde_expand(), Fvec(), Fwarning(), get_dispatch_type(), get_mapper_fun_options(), handle_message(), initial_page::initial_page(), install_mappers_fcns(), command_editor::interrupt(), jit_function_info::jit_function_info(), main(), octave_sparse_complex_matrix::map(), octave_sparse_matrix::map(), octave_float_complex_matrix::map(), octave_complex_matrix::map(), octave_float_complex::map(), octave_complex::map(), octave_float_matrix::map(), octave_matrix::map(), octave_scalar::map(), octave_float_scalar::map(), nan_ascending_compare(), nan_descending_compare(), workspace_view::notice_settings(), octave_type_conv_body(), parser::open_file(), HTMLDecoder::openSpan(), parse_dbfunction_params(), jit_instruction::push_argument(), jit_typeinfo::register_generic(), jit_infer::release_dead_phi(), jit_infer::release_temp(), set_format_style(), jit_infer::simplify_phi(), sparse_ascending_compare< Complex >(), sparse_descending_compare< Complex >(), color_picker::update_button(), Vt102Emulation::updateTitle(), jit_convert_llvm::visit(), tree_evaluator::visit_simple_for_command(), Vt102Emulation::XtermHack(), zacai(), zacon(), zasyi(), zbesh(), zbesi(), zbesj(), zbesk(), zffti1(), and zrati().

float arg ( float  x)
inline

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

References f.

OCTAVE_API Complex asin ( const Complex x)
OCTAVE_API Complex asinh ( const Complex x)

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

OCTAVE_API Complex atan ( const Complex x)
OCTAVE_API Complex atanh ( const Complex x)

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

template<typename T >
std::complex<T> ceil ( const std::complex< T > &  x)
double conj ( double  x)
inline

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

References x.

float conj ( float  x)
inline

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

References x.

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

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

References X_NINT().

double fix ( double  x)
inline
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 270 of file lo-mappers.h.

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

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 649 of file lo-mappers.cc.

References max(), and min().

OCTAVE_API octave_idx_type NINTbig ( double  x)
OCTAVE_API octave_idx_type NINTbig ( float  x)

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

References max(), and min().

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

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

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

OCTAVE_API bool octave_is_NA ( float  x)

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

References lo_ieee_is_NA.

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 ( const Complex x)

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

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

OCTAVE_API bool octave_is_NaN_or_NA ( float  x)

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

References lo_ieee_isnan.

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

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

References acos().

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

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

References acosh(), and acoshf().

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

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

References asin().

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

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

References atanh(), and atanhf().

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

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

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

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

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

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

References xlog2().

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

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

References f.

double real ( double  x)
inline

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

References x.

float real ( float  x)
inline

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

References x.

OCTAVE_API double signum ( double  x)
OCTAVE_API float signum ( float  x)

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

References octave_Float_NaN, and xisnan().

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

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

References abs().

template<typename T >
T X_NINT ( x)

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

References xfinite(), and xfloor().

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

double xceil ( double  x)
inline

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

References ceil().

Referenced by ceil().

float xceil ( float  x)
inline

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

OCTAVE_API double xcopysign ( double  x,
double  y 
)

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

Referenced by xmod(), and xrem().

OCTAVE_API float xcopysign ( float  x,
float  y 
)

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

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 348 of file lo-mappers.cc.

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

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

References lo_ieee_finite.

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

Definition at line 256 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().

OCTAVE_API float xfloor ( float  x)

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

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

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

References lo_ieee_isinf.

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

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

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

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

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

References xfinite(), and xround().

bool xisnan ( bool  )
inline

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

bool xisnan ( char  )
inline

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

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_float_complex::bool_array_value(), octave_complex::bool_array_value(), octave_scalar::bool_array_value(), octave_float_scalar::bool_array_value(), octave_float_complex::bool_value(), octave_complex::bool_value(), octave_scalar::bool_value(), octave_float_scalar::bool_value(), SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Matrix::column_max(), FloatMatrix::column_max(), ComplexMatrix::column_max(), FloatComplexMatrix::column_max(), Matrix::column_min(), FloatMatrix::column_min(), ComplexMatrix::column_min(), FloatComplexMatrix::column_min(), charNDArray::concat(), FloatNDArray::concat(), NDArray::concat(), convert_cdata_2(), octave_int_base< T >::convert_real(), octave_sparse_matrix::convert_to_str_internal(), octave_float_matrix::convert_to_str_internal(), octave_matrix::convert_to_str_internal(), octave_scalar::convert_to_str_internal(), octave_float_scalar::convert_to_str_internal(), SparseMatrix::determinant(), SparseComplexMatrix::determinant(), do_fft(), do_fft2(), do_fftn(), ch_manager::do_lookup(), gh_manager::do_lookup(), do_rand(), handle_property::do_set(), drawcn(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), F__go_figure__(), SparseMatrix::factorize(), SparseComplexMatrix::factorize(), Fcolloc(), Feps(), Fpause(), Fsleep(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Fspparms(), Fusleep(), opengl_renderer::is_nan_or_inf(), Array< double >::is_sorted(), Array< float >::is_sorted(), octave_base_scalar< ST >::is_true(), jcobi(), Matrix::ltsolve(), FloatMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), LuAminusSigmaB(), make_graphics_object(), octave_sparse_complex_matrix::map(), octave_sparse_matrix::map(), octave_float_complex::map(), octave_complex::map(), octave_scalar::map(), octave_float_scalar::map(), SparseMatrix::max(), SparseComplexMatrix::max(), SparseMatrix::min(), SparseComplexMatrix::min(), mx_inline_any_nan(), nan_ascending_compare(), nan_descending_compare(), octave_base_value::nint_value(), oct_unop_not(), octave_is_NaN_or_NA(), octave_handle::ok(), operator*(), pr_any_float(), rational_approx(), rc_lgamma(), Matrix::row_max(), FloatMatrix::row_max(), ComplexMatrix::row_max(), FloatComplexMatrix::row_max(), Matrix::row_min(), FloatMatrix::row_min(), ComplexMatrix::row_min(), FloatComplexMatrix::row_min(), safe_comparator(), root_figure::properties::set_callbackobject(), figure::properties::set_currentaxes(), root_figure::properties::set_currentfigure(), set_format(), signum(), sort_isnan< Complex >(), sort_isnan< double >(), sort_isnan< float >(), sort_isnan< FloatComplex >(), sparse_ascending_compare< Complex >(), sparse_ascending_compare< double >(), sparse_descending_compare< Complex >(), sparse_descending_compare< double >(), SparseComplexLU::SparseComplexLU(), SparseLU::SparseLU(), Matrix::utsolve(), FloatMatrix::utsolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), xgamma(), xis_int_or_inf_or_nan(), xis_true(), xisnan(), xlgamma(), xmax(), and xmin().

OCTAVE_API bool xisnan ( float  x)

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

References lo_ieee_isnan.

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

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

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

OCTAVE_API double xlog2 ( double  x)
OCTAVE_API Complex xlog2 ( const Complex x)

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

OCTAVE_API double xlog2 ( double  x,
int exp 
)

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

OCTAVE_API Complex xlog2 ( const Complex x,
int exp 
)

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

References abs(), and xlog2().

OCTAVE_API float xlog2 ( float  x)

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

OCTAVE_API float xlog2 ( float  x,
int exp 
)

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

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

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

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 
)
float xmax ( float  x,
float  y 
)
inline

Definition at line 166 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 
)
float xmin ( float  x,
float  y 
)
inline

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

References xisnan().

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

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

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

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

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

References __lo_ieee_float_signbit().

bool xpositive_sign ( double  x)
inline
bool xpositive_sign ( float  x)
inline

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

References xnegative_sign().

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

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

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

Referenced by Frem().

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

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

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

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

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

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

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

References xround(), and xtrunc().

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

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

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

template<typename T >
T xsignbit ( x)
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.