#include <limits>
#include "oct-cmplx.h"
#include "lo-math.h"
Go to the source code of this file.
Definition at line 413 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), and rc_acos().
Definition at line 421 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), and rc_acosh().
Definition at line 123 of file lo-mappers.h.
References f.
Definition at line 37 of file lo-mappers.h.
References atan2().
Referenced by cffti1(), DEFUN(), DEFUN_DLD(), DEFUNX(), do_dbstack(), do_dbupdown(), do_fft(), do_fft2(), do_fftn(), do_simple_cellfun(), do_trilu(), get_dispatch_type(), get_mapper_fun_options(), octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), nan_ascending_compare(), nan_descending_compare(), parse_dbfunction_params(), set_format_style(), tree_evaluator::visit_simple_for_command(), and zffti1().
Definition at line 427 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), and rc_asin().
Definition at line 435 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), and octave_complex::map().
Definition at line 441 of file lo-mappers.cc.
Referenced by DEFUN(), DEFUN_DLD(), octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), and octave_complex::map().
Definition at line 449 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), and rc_atanh().
std::complex<T> ceil | ( | const std::complex< T > & | x | ) |
Definition at line 275 of file lo-mappers.h.
References imag(), real, and xceil().
Referenced by erfcx_impl(), octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), pprsc(), and xceil().
Definition at line 124 of file lo-mappers.h.
Definition at line 38 of file lo-mappers.h.
Definition at line 240 of file lo-mappers.h.
References X_NINT().
Referenced by SparseMatrix::all_elements_are_int_or_inf_or_nan(), FloatComplexNDArray::all_integers(), FloatComplexMatrix::all_integers(), SparseMatrix::all_integers(), SparseComplexMatrix::all_integers(), ComplexNDArray::all_integers(), ComplexMatrix::all_integers(), DEFUN(), DEFUN_DLD(), printf_value_cache::int_value(), rational_approx(), rc_lgamma(), set_format(), xgamma(), xis_int_or_inf_or_nan(), xisint(), and xlgamma().
Definition at line 241 of file lo-mappers.h.
References X_NINT().
Definition at line 125 of file lo-mappers.h.
References xtrunc().
std::complex<T> fix | ( | const std::complex< T > & | x | ) |
Definition at line 268 of file lo-mappers.h.
Definition at line 39 of file lo-mappers.h.
References xtrunc().
Referenced by fix(), get_dimensions(), octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), and octave_base_value::nint_value().
std::complex<T> floor | ( | const std::complex< T > & | x | ) |
Definition at line 282 of file lo-mappers.h.
References imag(), real, and xfloor().
Referenced by DEFUN_DLD(), divide(), engineering_exponent(), extended_gcd(), get_ra_idx(), magform(), octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), num_digits(), oct_fill_randp(), oct_randp(), octave_print_internal_template(), poisson_cdf_lookup(), poisson_rejection(), pprsc(), tfloor(), and xfloor().
Definition at line 40 of file lo-mappers.h.
Definition at line 126 of file lo-mappers.h.
Definition at line 626 of file lo-mappers.cc.
Referenced by 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(), convert_to_valid_int(), DEFUN(), do_fft(), get_size(), and printf_value_cache::int_value().
Definition at line 637 of file lo-mappers.cc.
OCTAVE_API octave_idx_type NINTbig | ( | float | x | ) |
Definition at line 615 of file lo-mappers.cc.
OCTAVE_API octave_idx_type NINTbig | ( | double | x | ) |
Definition at line 604 of file lo-mappers.cc.
Referenced by Range::all_elements_are_ints(), FloatNDArray::concat(), NDArray::concat(), charNDArray::concat(), DEFUN_DLD(), do_fft(), do_fft2(), do_fftn(), DASPK::do_integrate(), and do_rand().
Definition at line 457 of file lo-mappers.cc.
References imag(), octave_is_NA(), and real.
Definition at line 177 of file lo-mappers.cc.
References lo_ieee_is_NA.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), octave_is_NA(), and pr_any_float().
Definition at line 397 of file lo-mappers.cc.
References lo_ieee_is_NA.
Definition at line 463 of file lo-mappers.cc.
Definition at line 183 of file lo-mappers.cc.
References lo_ieee_isnan.
Definition at line 403 of file lo-mappers.cc.
References lo_ieee_isnan.
Definition at line 485 of file lo-mappers.cc.
References acos().
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
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.
Definition at line 497 of file lo-mappers.cc.
References acosh().
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
Definition at line 509 of file lo-mappers.cc.
References asin().
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
OCTAVE_API FloatComplex rc_asin | ( | float | ) |
Definition at line 515 of file lo-mappers.cc.
References asin().
Definition at line 521 of file lo-mappers.cc.
References atanh().
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
OCTAVE_API FloatComplex rc_atanh | ( | float | ) |
Definition at line 527 of file lo-mappers.cc.
Definition at line 533 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
OCTAVE_API FloatComplex rc_log | ( | float | ) |
Definition at line 540 of file lo-mappers.cc.
Definition at line 561 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
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().
Definition at line 547 of file lo-mappers.cc.
References xlog2().
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
Definition at line 575 of file lo-mappers.cc.
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), and octave_float_scalar::map().
OCTAVE_API FloatComplex rc_sqrt | ( | float | ) |
Definition at line 581 of file lo-mappers.cc.
References f.
Definition at line 41 of file lo-mappers.h.
Definition at line 127 of file lo-mappers.h.
Definition at line 80 of file lo-mappers.cc.
References octave_NaN, and xisnan().
Referenced by cbrt(), cbrtf(), do_erfinv(), elem_dual_p(), octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), and octave_complex::map().
std::complex<T> signum | ( | const std::complex< T > & | x | ) |
Definition at line 303 of file lo-mappers.h.
References abs().
Definition at line 300 of file lo-mappers.cc.
References octave_Float_NaN, and xisnan().
T X_NINT | ( | T | x | ) |
Definition at line 121 of file lo-mappers.h.
Definition at line 277 of file lo-mappers.cc.
Definition at line 52 of file lo-mappers.cc.
Definition at line 121 of file lo-mappers.cc.
Referenced by base_det< T >::base_det().
Definition at line 341 of file lo-mappers.cc.
Definition at line 162 of file lo-mappers.cc.
References lo_ieee_finite.
Referenced by cbrt(), cbrtf(), DEFUN_DLD(), octave_scalar::map(), octave_sparse_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex::map(), mx_inline_all_finite(), Range::Range(), xfinite(), and xisinteger().
Definition at line 382 of file lo-mappers.cc.
References lo_ieee_finite.
bool xfinite | ( | const std::complex< T > & | x | ) |
Definition at line 254 of file lo-mappers.h.
Definition at line 122 of file lo-mappers.h.
bool xisinf | ( | const std::complex< T > & | x | ) |
Definition at line 261 of file lo-mappers.h.
Definition at line 170 of file lo-mappers.cc.
References lo_ieee_isinf.
Referenced by SparseMatrix::any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_inf_or_nan(), check_limit_vals(), DEFUN(), DEFUN_DLD(), octave_base_stream::do_printf(), octave_rand::do_scalar(), octave_rand::fill(), get_array_limits(), get_size(), octave_scalar::map(), octave_sparse_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex::map(), max_axes_scale(), pr_any_float(), pr_max_internal(), pr_min_internal(), rational_approx(), rc_lgamma(), save_mat5_array_length(), set_format(), octave_stream::skipl(), FloatComplexNDArray::too_large_for_float(), FloatComplexMatrix::too_large_for_float(), ComplexNDArray::too_large_for_float(), ComplexMatrix::too_large_for_float(), X_NINT(), xabs(), xgamma(), xisinf(), xlgamma(), and xtoo_large_for_float().
Definition at line 390 of file lo-mappers.cc.
References lo_ieee_isinf.
Definition at line 206 of file lo-mappers.h.
References xfinite(), and xround().
Referenced by FloatNDArray::all_integers(), FloatMatrix::all_integers(), NDArray::all_integers(), Matrix::all_integers(), extended_gcd(), and simple_gcd().
Definition at line 212 of file lo-mappers.h.
Definition at line 53 of file lo-mappers.h.
Definition at line 374 of file lo-mappers.cc.
References lo_ieee_isnan.
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().
bool xisnan | ( | const std::complex< T > & | x | ) |
Definition at line 247 of file lo-mappers.h.
Definition at line 52 of file lo-mappers.h.
Definition at line 329 of file lo-mappers.cc.
Definition at line 363 of file lo-mappers.cc.
Definition at line 357 of file lo-mappers.cc.
Definition at line 313 of file lo-mappers.cc.
Definition at line 93 of file lo-mappers.cc.
Referenced by base_det< T >::base_det(), Array< T >::lookup(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), map_2_xlog2(), base_det< T >::operator*=(), rc_log2(), idx_vector::idx_vector_rep::sort_idx(), idx_vector::idx_vector_rep::sort_uniq_clone(), and xlog2().
Definition at line 137 of file lo-mappers.cc.
Definition at line 166 of file lo-mappers.h.
References xisnan().
Definition at line 100 of file lo-mappers.h.
References xisnan().
Definition at line 479 of file lo-mappers.cc.
References abs(), and xisnan().
Referenced by max(), max_axes_scale(), and opengl_renderer::opengl_renderer().
T xmax | ( | T | x, | |
T | y | |||
) | [inline] |
Definition at line 85 of file lo-mappers.h.
Definition at line 160 of file lo-mappers.h.
References xisnan().
T xmin | ( | T | x, | |
T | y | |||
) | [inline] |
Definition at line 79 of file lo-mappers.h.
Definition at line 94 of file lo-mappers.h.
References xisnan().
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().
T xmod | ( | T | x, | |
T | y | |||
) |
Definition at line 312 of file lo-mappers.h.
References abs(), X_NINT(), xcopysign(), and xfloor().
Definition at line 587 of file lo-mappers.cc.
References __lo_ieee_signbit().
Referenced by FloatNDArray::any_element_is_negative(), FloatMatrix::any_element_is_negative(), NDArray::any_element_is_negative(), Matrix::any_element_is_negative(), and xpositive_sign().
Definition at line 593 of file lo-mappers.cc.
References __lo_ieee_float_signbit().
Definition at line 223 of file lo-mappers.h.
References xnegative_sign().
Definition at line 222 of file lo-mappers.h.
References xnegative_sign().
Referenced by FloatNDArray::any_element_is_positive(), FloatMatrix::any_element_is_positive(), NDArray::any_element_is_positive(), and Matrix::any_element_is_positive().
T xrem | ( | T | x, | |
T | y | |||
) |
Definition at line 359 of file lo-mappers.h.
References abs(), X_NINT(), xcopysign(), and xtrunc().
Referenced by DEFUN().
std::complex<T> xround | ( | const std::complex< T > & | x | ) |
Definition at line 289 of file lo-mappers.h.
Definition at line 63 of file lo-mappers.cc.
Referenced by octave_int_base< T >::compute_threshold(), convert_cdata_2(), octave_int_base< T >::convert_real(), DEFUN_DLD(), isargout1(), octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), pow(), powf(), rational_approx(), xisinteger(), xround(), and xroundb().
Definition at line 283 of file lo-mappers.cc.
std::complex<T> xroundb | ( | const std::complex< T > & | x | ) |
Definition at line 296 of file lo-mappers.h.
Definition at line 69 of file lo-mappers.cc.
References xround(), and xtrunc().
Referenced by octave_scalar::map(), octave_sparse_matrix::map(), octave_matrix::map(), octave_float_matrix::map(), octave_float_complex_matrix::map(), octave_float_complex::map(), octave_float_scalar::map(), octave_sparse_complex_matrix::map(), octave_complex_matrix::map(), octave_complex::map(), and xroundb().
Definition at line 289 of file lo-mappers.cc.
Definition at line 46 of file lo-mappers.cc.
Definition at line 271 of file lo-mappers.cc.