#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 | |
OCTAVE_API Complex | acos (const Complex &x) |
OCTAVE_API FloatComplex | acos (const FloatComplex &x) |
OCTAVE_API Complex | asin (const Complex &x) |
OCTAVE_API 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) |
OCTAVE_API double | frexp (double x, int *expptr) |
OCTAVE_API float | frexp (float x, int *expptr) |
OCTAVE_API bool | is_NaN_or_NA (const Complex &x) |
OCTAVE_API 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) |
OCTAVE_API bool | isna (const Complex &x) |
OCTAVE_API bool | isna (const FloatComplex &x) |
OCTAVE_API bool | isna (double x) |
OCTAVE_API 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) |
OCTAVE_API Complex | log2 (const Complex &x) |
OCTAVE_API Complex | log2 (const Complex &x, int &exp) |
OCTAVE_API FloatComplex | log2 (const FloatComplex &x) |
OCTAVE_API FloatComplex | log2 (const FloatComplex &x, int &exp) |
double | log2 (double x) |
OCTAVE_API double | log2 (double x, int &exp) |
float | log2 (float x) |
OCTAVE_API 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) |
OCTAVE_API bool | negative_sign (double x) |
OCTAVE_API bool | negative_sign (float x) |
OCTAVE_API int | nint (double x) |
OCTAVE_API int | nint (float x) |
OCTAVE_API octave_idx_type | nint_big (double x) |
OCTAVE_API octave_idx_type | nint_big (float x) |
bool | positive_sign (double x) |
bool | positive_sign (float x) |
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) |
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) |
OCTAVE_API Complex acos | ( | const Complex & | x | ) |
Definition at line 85 of file lo-mappers.cc.
References conj(), imag(), real(), and x.
Referenced by acos(), Facos(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), and rc_acos().
OCTAVE_API FloatComplex acos | ( | const FloatComplex & | x | ) |
OCTAVE_API Complex asin | ( | const Complex & | x | ) |
Definition at line 107 of file lo-mappers.cc.
References conj(), imag(), real(), and x.
Referenced by asin(), ellipj(), Fasin(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), and rc_asin().
OCTAVE_API FloatComplex asin | ( | const FloatComplex & | x | ) |
Definition at line 71 of file lo-mappers.h.
References x.
Referenced by atan(), cbknu(), cunhj(), Fatan(), Fpi(), Fquadcc(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
|
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(), url_handle_manager::free(), url_handle_manager::get_handle(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), pprsc(), and ft_text_renderer::visit().
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.
Referenced by Faddeeva_w(), Fquadcc(), mod(), and rem().
|
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 convert_cdata_2(), Ffind(), Ffix(), isargout1(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), octave_base_value::nint_value(), ok_for_signed_int_conv(), ok_for_unsigned_int_conv(), operator*(), operator/(), pow(), powf(), and ListBoxControl::update().
|
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 divide(), engineering_exponent(), err_invalid_index(), extended_gcd(), Faddeeva_w(), Ffloor(), Frandperm(), resource_manager::get_default_font(), get_ra_idx(), magform(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), mod(), Range::nnz(), num_digits(), number_to_fractional(), octave_print_internal_template(), poisson_cdf_lookup(), poisson_rejection(), pprsc(), ft_text_renderer::process_character(), rand_poisson(), latex_renderer::render(), octave_cell::save_hdf5(), tfloor(), x_nint(), xpsi(), and xtfloor().
OCTAVE_API double frexp | ( | double | x, |
int * | expptr | ||
) |
Definition at line 128 of file lo-mappers.cc.
References octave_frexp_wrapper(), and x.
Referenced by dblesplit(), eps(), log2(), and octave_frexp_wrapper().
OCTAVE_API float frexp | ( | float | x, |
int * | expptr | ||
) |
Definition at line 133 of file lo-mappers.cc.
References octave_frexpf_wrapper(), and x.
OCTAVE_API bool is_NaN_or_NA | ( | const Complex & | x | ) |
Definition at line 71 of file lo-mappers.cc.
References imag(), isnan(), real(), and x.
Referenced by textscan::scan_complex().
OCTAVE_API 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(), check_limit_vals(), opengl_renderer::draw_surface(), Fdlmread(), rand::fill(), Fisfinite(), Fquadcc(), rand::gamma(), ComplexMatrix::inverse(), Matrix::inverse(), FloatComplexMatrix::inverse(), FloatMatrix::inverse(), isfinite(), isinteger(), make_complex_scalar_format(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), max_axes_scale(), mx_inline_all_finite(), Range::numel_internal(), Range::ok(), rand::poisson(), pr_max_internal(), pr_min_internal(), 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 Range::Range(), __lo_ieee_float_isinf(), __lo_ieee_isinf(), SparseComplexMatrix::any_element_is_inf_or_nan(), SparseMatrix::any_element_is_inf_or_nan(), DEFMETHODX(), do_rand(), opengl_renderer::draw_axes_x_grid(), opengl_renderer::draw_axes_y_grid(), opengl_renderer::draw_axes_z_grid(), eps(), tree_evaluator::execute_range_loop(), F__glpk__(), Faddeeva_w(), Faudioread(), Ffind(), ComplexMatrix::finverse(), FloatComplexMatrix::finverse(), Fisinf(), Fquadcc(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), gamma(), get_array_limits(), get_size(), Range::init(), ComplexMatrix::inverse(), Matrix::inverse(), FloatComplexMatrix::inverse(), FloatMatrix::inverse(), opengl_renderer::is_nan_or_inf(), isinf(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), FloatMatrix::lssolve(), Matrix::lssolve(), make_complex_scalar_format(), make_scalar_format(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), norm1(), Range::numel_internal(), operator*(), pr_any_float(), rational_approx(), stream::skipl(), sleep(), xabs(), 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(), extended_gcd(), Faudiowrite(), Fbase64_encode(), Fintmax(), Fintmin(), Fisinteger(), Fmod(), Fordqz(), Frem(), and simple_gcd().
|
inline |
Definition at line 226 of file lo-mappers.h.
References isfinite(), round(), and x.
OCTAVE_API bool isna | ( | const Complex & | x | ) |
OCTAVE_API bool isna | ( | const FloatComplex & | x | ) |
OCTAVE_API bool isna | ( | double | x | ) |
Definition at line 47 of file lo-mappers.cc.
References lo_ieee_is_NA, and x.
Referenced by Fisna(), isna(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), and pr_any_float().
OCTAVE_API 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(), norm_accumulator_inf< R >::accum(), norm_accumulator_minf< R >::accum(), SparseMatrix::all_elements_are_int_or_inf_or_nan(), Range::all_elements_are_ints(), 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(), SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), 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(), convert_cdata_2(), 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(), cpolar(), ComplexMatrix::determinant(), FloatComplexMatrix::determinant(), SparseComplexMatrix::determinant(), SparseMatrix::determinant(), do_fft(), do_fft2(), do_fftn(), opengl_renderer::draw_patch(), drawcn(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), eps(), err_invalid_index(), F__go_figure__(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Faddeeva_Dawson(), Faddeeva_erf(), Faddeeva_w(), Faudiowrite(), Fcolloc(), Finv(), ComplexMatrix::finverse(), Matrix::finverse(), FloatComplexMatrix::finverse(), FloatMatrix::finverse(), Fisnan(), Fpause(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), FloatMatrix::fsolve(), Matrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), Fspparms(), gamma(), is_int_or_inf_or_nan(), opengl_renderer::is_nan_or_inf(), is_NaN_or_NA(), is_singular2d(), is_singular3d(), isnan(), Array< T, Alloc >::issorted(), jcobi(), url_handle_manager::lookup(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), FloatMatrix::lssolve(), Matrix::lssolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), FloatMatrix::ltsolve(), Matrix::ltsolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), LuAminusSigmaB(), make_complex_scalar_format(), make_graphics_object(), make_scalar_format(), Utils::makeImageFromCData(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), SparseComplexMatrix::max(), SparseMatrix::max(), max(), SparseComplexMatrix::min(), SparseMatrix::min(), min(), mx_inline_any_nan(), nan_ascending_compare(), nan_descending_compare(), octave_base_value::nint_value(), norm1(), Range::numel_internal(), oct_unop_not(), octave_handle::ok(), operator*(), pr_any_float(), octave_base_scalar< double >::print_raw(), rational_approx(), ComplexMatrix::rcond(), FloatComplexMatrix::rcond(), 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(), 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 >(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), FloatMatrix::utsolve(), Matrix::utsolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), 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.
OCTAVE_API Complex log2 | ( | const Complex & | x | ) |
Definition at line 139 of file lo-mappers.cc.
References x.
Referenced by base_det< T >::base_det(), Flog2(), log2(), Array< T, Alloc >::lookup(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), FloatMatrix::lssolve(), Matrix::lssolve(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), map_2_xlog2(), base_det< T >::operator*=(), rc_log2(), idx_vector::idx_vector_rep::sort_idx(), and idx_vector::idx_vector_rep::sort_uniq_clone().
OCTAVE_API Complex log2 | ( | const Complex & | x, |
int & | exp | ||
) |
Definition at line 163 of file lo-mappers.cc.
OCTAVE_API FloatComplex log2 | ( | const FloatComplex & | x | ) |
Definition at line 145 of file lo-mappers.cc.
References x.
OCTAVE_API FloatComplex log2 | ( | const FloatComplex & | x, |
int & | exp | ||
) |
Definition at line 171 of file lo-mappers.cc.
|
inline |
Definition at line 86 of file lo-mappers.h.
References x.
OCTAVE_API double log2 | ( | double | x, |
int & | exp | ||
) |
Definition at line 151 of file lo-mappers.cc.
|
inline |
Definition at line 87 of file lo-mappers.h.
References x.
OCTAVE_API float log2 | ( | float | x, |
int & | exp | ||
) |
Definition at line 157 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 | ||
) |
Definition at line 294 of file lo-mappers.h.
References abs(), copysign(), floor(), n, x, and x_nint().
Referenced by algams(), cacai(), cacon(), casyi(), cbesh(), cbesi(), cbesj(), variable_editor_view::copyClipboard(), cuni2(), cunk1(), cunk2(), variable_editor_view::delete_selected(), dlgams(), Fmod(), ignuin(), variable_editor_view::pasteClipboard(), phrtsd(), xnnz(), zacai(), zacon(), zasyi(), zbesh(), zbesi(), zbesj(), zuni2(), zunk1(), and zunk2().
OCTAVE_API bool negative_sign | ( | double | x | ) |
Definition at line 178 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().
OCTAVE_API bool negative_sign | ( | float | x | ) |
Definition at line 179 of file lo-mappers.cc.
References __lo_ieee_float_signbit(), and x.
OCTAVE_API int nint | ( | double | x | ) |
Definition at line 212 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(), convert_to_valid_int(), do_fft(), dqagpe(), printf_value_cache::int_value(), and qagpe().
OCTAVE_API int nint | ( | float | x | ) |
Definition at line 223 of file lo-mappers.cc.
OCTAVE_API octave_idx_type nint_big | ( | double | x | ) |
Definition at line 184 of file lo-mappers.cc.
References max(), min(), and x.
Referenced by Range::all_elements_are_ints(), NDArray::concat(), FloatNDArray::concat(), charNDArray::concat(), do_fft(), do_fft2(), do_fftn(), DASPK::do_integrate(), do_rand(), Fcolloc(), get_size(), and xall_elements_are_ints().
OCTAVE_API octave_idx_type nint_big | ( | float | x | ) |
Definition at line 198 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.
OCTAVE_API Complex rc_acos | ( | double | x | ) |
Definition at line 236 of file lo-mappers.cc.
Referenced by octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_acos | ( | float | x | ) |
Definition at line 242 of file lo-mappers.cc.
OCTAVE_API Complex rc_acosh | ( | double | x | ) |
Definition at line 249 of file lo-mappers.cc.
Referenced by octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_acosh | ( | float | x | ) |
Definition at line 255 of file lo-mappers.cc.
OCTAVE_API Complex rc_asin | ( | double | x | ) |
Definition at line 261 of file lo-mappers.cc.
Referenced by octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_asin | ( | float | x | ) |
Definition at line 267 of file lo-mappers.cc.
OCTAVE_API Complex rc_atanh | ( | double | x | ) |
Definition at line 274 of file lo-mappers.cc.
Referenced by octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_atanh | ( | float | x | ) |
Definition at line 280 of file lo-mappers.cc.
OCTAVE_API Complex rc_log | ( | double | x | ) |
Definition at line 287 of file lo-mappers.cc.
References x.
Referenced by octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_log | ( | float | x | ) |
Definition at line 293 of file lo-mappers.cc.
References x.
OCTAVE_API Complex rc_log10 | ( | double | x | ) |
Definition at line 315 of file lo-mappers.cc.
References x.
Referenced by octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_log10 | ( | float | x | ) |
Definition at line 322 of file lo-mappers.cc.
References x.
OCTAVE_API Complex rc_log2 | ( | double | x | ) |
Definition at line 300 of file lo-mappers.cc.
Referenced by octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_log2 | ( | float | x | ) |
Definition at line 307 of file lo-mappers.cc.
OCTAVE_API Complex rc_sqrt | ( | double | x | ) |
Definition at line 330 of file lo-mappers.cc.
References x.
Referenced by octave_float_scalar::map(), octave_float_diag_matrix::map(), octave_float_matrix::map(), octave_diag_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), and octave_scalar::map().
OCTAVE_API FloatComplex rc_sqrt | ( | float | x | ) |
Definition at line 336 of file lo-mappers.cc.
References x.
T rem | ( | T | x, |
T | y | ||
) |
Definition at line 327 of file lo-mappers.h.
References abs(), copysign(), n, NaN, trunc(), 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 ButtonGroup::ButtonGroup(), ListBoxControl::ListBoxControl(), Panel::Panel(), SliderControl::SliderControl(), Table::Table(), borderWidthFromProperties(), boundingBoxToRect(), ft_text_renderer::compute_bbox(), octave_int_base< T >::compute_threshold(), octave_int_base< T >::convert_real(), encode_uint_image(), Fround(), BaseControl::init(), isinteger(), Range::limit_internal(), Utils::makeImageFromCData(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), ft_text_renderer::push_new_line(), rational_approx(), Container::resizeEvent(), round(), roundb(), opengl_renderer::set_linestyle(), BaseControl::update(), ButtonGroup::update(), ContextMenu::update(), Panel::update(), SliderControl::update(), Table::update(), ButtonGroup::updateLayout(), Panel::updateLayout(), updateSelection(), SliderControl::valueChanged(), 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 |
Definition at line 147 of file lo-mappers.h.
References round(), trunc(), and x.
Referenced by Froundb(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), and roundb().
|
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(), octave_float_scalar::map(), octave_float_matrix::map(), octave_matrix::map(), octave_scalar::map(), 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 do_erfinv(), opengl_renderer::draw_axes_x_grid(), opengl_renderer::draw_axes_y_grid(), opengl_renderer::draw_axes_z_grid(), elem_dual_p(), Fsign(), octave_complex::map(), octave_complex_matrix::map(), octave_sparse_complex_matrix::map(), octave_float_scalar::map(), octave_float_complex::map(), octave_float_complex_matrix::map(), octave_float_matrix::map(), octave_matrix::map(), octave_sparse_matrix::map(), octave_scalar::map(), octave_get_sig_number(), octave_kill_wrapper(), octave_raise_wrapper(), octave_strsignal_wrapper(), and set_sig_struct_field().
|
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 idx_vector::idx_range_rep::idx_range_rep(), load_save_system::dump_octave_core(), fix(), fopen_mode_to_ios_mode(), stream::mode_as_string(), gzfilebuf::open_mode(), rem(), 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(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), F__go_figure__(), Faudioread(), Fgetgrgid(), Fgetpwuid(), Fterminal_size(), gamma(), printf_value_cache::get_next_value(), printf_value_cache::int_value(), is_int_or_inf_or_nan(), make_complex_scalar_format(), make_scalar_format(), mod(), rational_approx(), rem(), and xisint().