#include "octave-config.h"
#include <cmath>
#include <limits>
#include "lo-ieee.h"
#include "oct-cmplx.h"
#include "oct-inttypes-fwd.h"
Go to the source code of this file.
Functions | |
Complex | acos (const Complex &x) |
FloatComplex | acos (const FloatComplex &x) |
Complex | asin (const Complex &x) |
FloatComplex | asin (const FloatComplex &x) |
Complex | atan (const Complex &x) |
FloatComplex | atan (const FloatComplex &x) |
template<typename T > | |
std::complex< T > | ceil (const std::complex< T > &x) |
template<typename T > | |
std::complex< T > | conj (const std::complex< T > &x) |
double | conj (double x) |
float | conj (float x) |
double | copysign (double x, double y) |
float | copysign (float x, float y) |
double | exp2 (double x) |
float | exp2 (float x) |
template<typename T > | |
std::complex< T > | fix (const std::complex< T > &x) |
double | fix (double x) |
float | fix (float x) |
template<typename T > | |
std::complex< T > | floor (const std::complex< T > &x) |
double | frexp (double x, int *expptr) |
float | frexp (float x, int *expptr) |
bool | is_NaN_or_NA (const Complex &x) |
bool | is_NaN_or_NA (const FloatComplex &x) |
template<typename T > | |
bool | isfinite (const std::complex< T > &x) |
bool | isfinite (double x) |
bool | isfinite (float x) |
template<typename T > | |
bool | isinf (const octave_int< T > &) |
template<typename T > | |
bool | isinf (const std::complex< T > &x) |
bool | isinf (double x) |
bool | isinf (float x) |
bool | isinteger (double x) |
bool | isinteger (float x) |
bool | isna (const Complex &x) |
bool | isna (const FloatComplex &x) |
bool | isna (double x) |
bool | isna (float x) |
bool | isnan (bool) |
bool | isnan (char) |
template<typename T > | |
bool | isnan (const std::complex< T > &x) |
bool | isnan (double x) |
bool | isnan (float x) |
Complex | log2 (const Complex &x) |
Complex | log2 (const Complex &x, int &exp) |
FloatComplex | log2 (const FloatComplex &x) |
FloatComplex | log2 (const FloatComplex &x, int &exp) |
double | log2 (double x) |
double | log2 (double x, int &exp) |
float | log2 (float x) |
float | log2 (float x, int &exp) |
template<typename T > | |
octave_int< T > | max (const octave_int< T > &x, const octave_int< T > &y) |
std::complex< double > | max (const std::complex< double > &x, const std::complex< double > &y) |
std::complex< float > | max (const std::complex< float > &x, const std::complex< float > &y) |
double | max (double x, double y) |
float | max (float x, float y) |
template<typename T > | |
T | max (T x, T y) |
template<typename T > | |
octave_int< T > | min (const octave_int< T > &x, const octave_int< T > &y) |
std::complex< double > | min (const std::complex< double > &x, const std::complex< double > &y) |
std::complex< float > | min (const std::complex< float > &x, const std::complex< float > &y) |
double | min (double x, double y) |
float | min (float x, float y) |
template<typename T > | |
T | min (T x, T y) |
template<typename T > | |
T | mod (T x, T y) |
bool | negative_sign (double x) |
bool | negative_sign (float x) |
int | nint (double x) |
int | nint (float x) |
octave_idx_type | nint_big (double x) |
octave_idx_type | nint_big (float x) |
bool | positive_sign (double x) |
bool | positive_sign (float x) |
Complex | rc_acos (double) |
FloatComplex | rc_acos (float) |
Complex | rc_acosh (double) |
FloatComplex | rc_acosh (float) |
Complex | rc_asin (double) |
FloatComplex | rc_asin (float) |
Complex | rc_atanh (double) |
FloatComplex | rc_atanh (float) |
Complex | rc_log (double) |
FloatComplex | rc_log (float) |
Complex | rc_log10 (double) |
FloatComplex | rc_log10 (float) |
Complex | rc_log2 (double) |
FloatComplex | rc_log2 (float) |
Complex | rc_sqrt (double) |
FloatComplex | rc_sqrt (float) |
template<typename T > | |
T | rem (T x, T y) |
template<typename T > | |
std::complex< T > | round (const std::complex< T > &x) |
double | round (double x) |
float | round (float x) |
template<typename T > | |
std::complex< T > | roundb (const std::complex< T > &x) |
double | roundb (double x) |
float | roundb (float x) |
double | signbit (double x) |
float | signbit (float x) |
template<typename T > | |
std::complex< T > | signum (const std::complex< T > &x) |
double | signum (double x) |
float | signum (float x) |
template<typename T > | |
std::complex< T > | trunc (const std::complex< T > &x) |
template<> | |
double | x_nint (double x) |
template<> | |
float | x_nint (float x) |
template<typename T > | |
T | x_nint (T x) |
FloatComplex acos | ( | const FloatComplex & | x | ) |
FloatComplex asin | ( | const FloatComplex & | x | ) |
Definition at line 71 of file lo-mappers.h.
References x.
Referenced by atan(), cbknu(), cunhj(), Fatan(), Fpi(), and text::properties::get_extent_matrix().
|
inline |
Definition at line 72 of file lo-mappers.h.
std::complex<T> ceil | ( | const std::complex< T > & | x | ) |
Definition at line 103 of file lo-mappers.h.
References imag(), real(), and x.
Referenced by Fceil(), gh_manager::free(), url_handle_manager::free(), url_handle_manager::get_handle(), gh_manager::get_handle(), and gh_manager::renumber_figure().
std::complex<T> conj | ( | const std::complex< T > & | x | ) |
Definition at line 81 of file lo-mappers.h.
|
inline |
|
inline |
Definition at line 77 of file lo-mappers.h.
References x.
|
inline |
Definition at line 51 of file lo-mappers.h.
References x.
|
inline |
Definition at line 52 of file lo-mappers.h.
References x.
|
inline |
Definition at line 98 of file lo-mappers.h.
References x.
Referenced by base_det< T >::base_det(), F__betainc__(), F__expint__(), F__gammainc__(), and Fpow2().
|
inline |
Definition at line 99 of file lo-mappers.h.
References x.
std::complex<T> fix | ( | const std::complex< T > & | x | ) |
Definition at line 123 of file lo-mappers.h.
|
inline |
Definition at line 118 of file lo-mappers.h.
Referenced by Ffind(), Ffix(), octave_base_value::nint_value(), operator*(), operator/(), pow(), and powf().
|
inline |
Definition at line 119 of file lo-mappers.h.
std::complex<T> floor | ( | const std::complex< T > & | x | ) |
Definition at line 130 of file lo-mappers.h.
References imag(), real(), and x.
Referenced by err_invalid_index(), Ffloor(), Frandperm(), rand_poisson(), octave_cell::save_hdf5(), x_nint(), xpsi(), and xtfloor().
double frexp | ( | double | x, |
int * | expptr | ||
) |
Definition at line 129 of file lo-mappers.cc.
References octave_frexp_wrapper(), and x.
Referenced by eps(), log2(), and octave_frexp_wrapper().
float frexp | ( | float | x, |
int * | expptr | ||
) |
Definition at line 135 of file lo-mappers.cc.
References octave_frexpf_wrapper(), and x.
bool is_NaN_or_NA | ( | const Complex & | x | ) |
bool is_NaN_or_NA | ( | const FloatComplex & | x | ) |
bool isfinite | ( | const std::complex< T > & | x | ) |
Definition at line 198 of file lo-mappers.h.
References imag(), isfinite(), real(), and x.
|
inline |
Definition at line 192 of file lo-mappers.h.
References x.
Referenced by __lo_ieee_float_isfinite(), __lo_ieee_isfinite(), axes::properties::check_axis_limits(), double_property::do_set(), opengl_renderer::draw_surface(), Fisfinite(), isfinite(), isinteger(), mx_inline_all_finite(), save_mat5_array_length(), too_large_for_float(), x_nint(), and xnumel_internal().
|
inline |
Definition at line 193 of file lo-mappers.h.
References isfinite(), and x.
bool isinf | ( | const octave_int< T > & | ) |
Definition at line 208 of file lo-mappers.h.
bool isinf | ( | const std::complex< T > & | x | ) |
|
inline |
Definition at line 203 of file lo-mappers.h.
References x.
Referenced by __lo_ieee_float_isinf(), __lo_ieee_isinf(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), double_property::do_set(), eps(), F__glpk__(), Faudioread(), Ffind(), Fisinf(), gamma(), axes::properties::get_axis_limits(), isinf(), linspace(), operator*(), rational_approx(), stream::skipl(), octave::sleep(), xinit(), xis_storable(), and xnumel_internal().
|
inline |
Definition at line 204 of file lo-mappers.h.
|
inline |
Definition at line 225 of file lo-mappers.h.
References isfinite(), round(), and x.
Referenced by NDArray::all_integers(), FloatNDArray::all_integers(), Faudiowrite(), Fbase64_encode(), Fintmax(), Fintmin(), Fisinteger(), Fmod(), Fordqz(), and Frem().
|
inline |
Definition at line 226 of file lo-mappers.h.
References isfinite(), round(), and x.
bool isna | ( | const Complex & | x | ) |
bool isna | ( | const FloatComplex & | x | ) |
bool isna | ( | double | x | ) |
Definition at line 47 of file lo-mappers.cc.
References lo_ieee_is_NA, and x.
bool isna | ( | float | x | ) |
Definition at line 59 of file lo-mappers.cc.
References lo_ieee_is_NA, and x.
|
inline |
Definition at line 178 of file lo-mappers.h.
Referenced by sparse_lu< lu_type >::sparse_lu(), __lo_ieee_float_isnan(), __lo_ieee_isnan(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), SparseComplexMatrix::any_element_is_nan(), SparseMatrix::any_element_is_nan(), Sparse< T, Alloc >::SparseRep::any_element_is_nan(), octave_complex::bool_array_value(), octave_float_scalar::bool_array_value(), octave_float_complex::bool_array_value(), octave_scalar::bool_array_value(), octave_complex::bool_value(), octave_float_scalar::bool_value(), octave_float_complex::bool_value(), octave_scalar::bool_value(), ComplexMatrix::column_max(), Matrix::column_max(), FloatComplexMatrix::column_max(), FloatMatrix::column_max(), ComplexMatrix::column_min(), Matrix::column_min(), FloatComplexMatrix::column_min(), FloatMatrix::column_min(), NDArray::concat(), FloatNDArray::concat(), charNDArray::concat(), octave_int_base< T >::convert_real(), octave_float_scalar::convert_to_str_internal(), octave_float_matrix::convert_to_str_internal(), octave_matrix::convert_to_str_internal(), octave_sparse_matrix::convert_to_str_internal(), octave_scalar::convert_to_str_internal(), ov_range< T >::could_be_trivial_range(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), double_property::do_set(), handle_property::do_set(), opengl_renderer::draw_patch(), eps(), err_invalid_index(), F__go_figure__(), Faddeeva_Dawson(), Faddeeva_erf(), Fcolloc(), Finv(), Fisnan(), Fspparms(), gamma(), is_int_or_inf_or_nan(), is_NaN_or_NA(), octave_base_scalar< ST >::is_true(), isnan(), Array< T, Alloc >::issorted(), linspace(), url_handle_manager::lookup(), gh_manager::lookup(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), mx_inline_any_nan(), octave_base_value::nint_value(), octave_handle::ok(), operator*(), rational_approx(), read_fp_value(), ComplexMatrix::row_max(), Matrix::row_max(), FloatComplexMatrix::row_max(), FloatMatrix::row_max(), ComplexMatrix::row_min(), Matrix::row_min(), FloatComplexMatrix::row_min(), FloatMatrix::row_min(), safe_comparator(), root_figure::properties::set_callbackobject(), figure::properties::set_currentaxes(), root_figure::properties::set_currentfigure(), 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 >(), xall_elements_are_ints(), xinit(), xis_true(), and xnumel_internal().
|
inline |
Definition at line 179 of file lo-mappers.h.
bool isnan | ( | const std::complex< T > & | x | ) |
|
inline |
Definition at line 181 of file lo-mappers.h.
|
inline |
Definition at line 182 of file lo-mappers.h.
Definition at line 141 of file lo-mappers.cc.
References x.
Referenced by base_det< T >::base_det(), Flog2(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), FloatMatrix::lssolve(), Matrix::lssolve(), map_2_xlog2(), base_det< T >::operator*=(), and rc_log2().
Definition at line 165 of file lo-mappers.cc.
FloatComplex log2 | ( | const FloatComplex & | x | ) |
Definition at line 147 of file lo-mappers.cc.
References x.
FloatComplex log2 | ( | const FloatComplex & | x, |
int & | exp | ||
) |
Definition at line 173 of file lo-mappers.cc.
|
inline |
Definition at line 86 of file lo-mappers.h.
References x.
double log2 | ( | double | x, |
int & | exp | ||
) |
Definition at line 153 of file lo-mappers.cc.
|
inline |
Definition at line 87 of file lo-mappers.h.
References x.
float log2 | ( | float | x, |
int & | exp | ||
) |
Definition at line 159 of file lo-mappers.cc.
|
inline |
Definition at line 434 of file lo-mappers.h.
|
inline |
Definition at line 414 of file lo-mappers.h.
|
inline |
Definition at line 420 of file lo-mappers.h.
|
inline |
Definition at line 384 of file lo-mappers.h.
|
inline |
Definition at line 396 of file lo-mappers.h.
T max | ( | T | x, |
T | y | ||
) |
Definition at line 368 of file lo-mappers.h.
References x.
|
inline |
Definition at line 427 of file lo-mappers.h.
|
inline |
Definition at line 402 of file lo-mappers.h.
|
inline |
Definition at line 408 of file lo-mappers.h.
|
inline |
Definition at line 378 of file lo-mappers.h.
|
inline |
Definition at line 390 of file lo-mappers.h.
T min | ( | T | x, |
T | y | ||
) |
Definition at line 361 of file lo-mappers.h.
References x.
T mod | ( | T | x, |
T | y | ||
) |
bool negative_sign | ( | double | x | ) |
Definition at line 181 of file lo-mappers.cc.
References __lo_ieee_signbit(), and x.
Referenced by NDArray::any_element_is_negative(), FloatNDArray::any_element_is_negative(), gamma(), and positive_sign().
bool negative_sign | ( | float | x | ) |
Definition at line 183 of file lo-mappers.cc.
References __lo_ieee_float_signbit(), and x.
int nint | ( | double | x | ) |
Definition at line 216 of file lo-mappers.cc.
References max(), min(), and x.
Referenced by octave_float_scalar::convert_to_str_internal(), octave_float_matrix::convert_to_str_internal(), octave_matrix::convert_to_str_internal(), octave_sparse_matrix::convert_to_str_internal(), octave_scalar::convert_to_str_internal(), dqagpe(), and qagpe().
int nint | ( | float | x | ) |
Definition at line 227 of file lo-mappers.cc.
octave_idx_type nint_big | ( | double | x | ) |
Definition at line 188 of file lo-mappers.cc.
References max(), min(), and x.
Referenced by NDArray::concat(), FloatNDArray::concat(), charNDArray::concat(), Fcolloc(), and xall_elements_are_ints().
octave_idx_type nint_big | ( | float | x | ) |
Definition at line 202 of file lo-mappers.cc.
|
inline |
Definition at line 62 of file lo-mappers.h.
References negative_sign(), and x.
Referenced by NDArray::any_element_is_positive(), and FloatNDArray::any_element_is_positive().
|
inline |
Definition at line 63 of file lo-mappers.h.
References negative_sign(), and x.
Complex rc_acos | ( | double | x | ) |
Definition at line 240 of file lo-mappers.cc.
FloatComplex rc_acos | ( | float | x | ) |
Definition at line 246 of file lo-mappers.cc.
Complex rc_acosh | ( | double | x | ) |
Definition at line 253 of file lo-mappers.cc.
FloatComplex rc_acosh | ( | float | x | ) |
Definition at line 259 of file lo-mappers.cc.
Complex rc_asin | ( | double | x | ) |
Definition at line 265 of file lo-mappers.cc.
FloatComplex rc_asin | ( | float | x | ) |
Definition at line 271 of file lo-mappers.cc.
Complex rc_atanh | ( | double | x | ) |
Definition at line 278 of file lo-mappers.cc.
FloatComplex rc_atanh | ( | float | x | ) |
Definition at line 284 of file lo-mappers.cc.
Complex rc_log | ( | double | x | ) |
Definition at line 291 of file lo-mappers.cc.
References x.
FloatComplex rc_log | ( | float | x | ) |
Definition at line 297 of file lo-mappers.cc.
References x.
Complex rc_log10 | ( | double | x | ) |
Definition at line 319 of file lo-mappers.cc.
References x.
FloatComplex rc_log10 | ( | float | x | ) |
Definition at line 326 of file lo-mappers.cc.
References x.
Complex rc_log2 | ( | double | x | ) |
Definition at line 304 of file lo-mappers.cc.
FloatComplex rc_log2 | ( | float | x | ) |
Definition at line 311 of file lo-mappers.cc.
Complex rc_sqrt | ( | double | x | ) |
Definition at line 334 of file lo-mappers.cc.
References x.
Referenced by octave_float_diag_matrix::map(), and octave_diag_matrix::map().
FloatComplex rc_sqrt | ( | float | x | ) |
Definition at line 340 of file lo-mappers.cc.
References x.
T rem | ( | T | x, |
T | y | ||
) |
Definition at line 327 of file lo-mappers.h.
References NaN, x, and x_nint().
Referenced by time::time(), and Frem().
std::complex<T> round | ( | const std::complex< T > & | x | ) |
|
inline |
Definition at line 136 of file lo-mappers.h.
References x.
Referenced by octave_int_base< T >::convert_real(), Fround(), isinteger(), rational_approx(), round(), roundb(), opengl_renderer::set_linestyle(), and xfinal_value().
|
inline |
Definition at line 137 of file lo-mappers.h.
References x.
std::complex<T> roundb | ( | const std::complex< T > & | x | ) |
|
inline |
|
inline |
Definition at line 158 of file lo-mappers.h.
|
inline |
Definition at line 54 of file lo-mappers.h.
References x.
Referenced by __lo_ieee_float_signbit(), __lo_ieee_signbit(), and signbit().
|
inline |
Definition at line 55 of file lo-mappers.h.
std::complex<T> signum | ( | const std::complex< T > & | x | ) |
Definition at line 256 of file lo-mappers.h.
|
inline |
Definition at line 229 of file lo-mappers.h.
References isnan(), NaN, and x.
Referenced by elem_dual_p(), Fsign(), octave_get_sig_number(), octave_kill_wrapper(), octave_raise_wrapper(), octave_strsignal_wrapper(), and axes::properties::update_camera().
|
inline |
Definition at line 242 of file lo-mappers.h.
std::complex<T> trunc | ( | const std::complex< T > & | x | ) |
Definition at line 111 of file lo-mappers.h.
References imag(), real(), and x.
Referenced by load_save_system::dump_octave_core(), fix(), stream::mode_as_string(), gzfilebuf::open_mode(), and roundb().
|
inline |
Definition at line 275 of file lo-mappers.h.
References floor(), isfinite(), and x.
|
inline |
Definition at line 281 of file lo-mappers.h.
References floor(), isfinite(), and x.
T x_nint | ( | T | x | ) |
Definition at line 269 of file lo-mappers.h.
References x.
Referenced by SparseMatrix::all_elements_are_int_or_inf_or_nan(), ComplexNDArray::all_integers(), SparseComplexMatrix::all_integers(), SparseMatrix::all_integers(), FloatComplexNDArray::all_integers(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), F__go_figure__(), Faudioread(), Fgetgrgid(), Fgetpwuid(), octave::Fterminal_size(), gamma(), is_int_or_inf_or_nan(), mod(), rational_approx(), and rem().