#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_integer (double x) |
| bool | is_integer (float x) |
| 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 octave_int< T > &) |
| 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 > | |
| auto | mappers_abs (const octave_int< T > &x) |
| char | max (char x, char y) |
| template<typename T > | |
| octave_int< T > | max (const octave_int< T > &x, const octave_int< T > &y) |
| template<typename T > | |
| octave_int< T > | max (const octave_int< T > &x, const octave_int< T > &y, const bool nanflag) |
| template<typename T > | |
| octave_int< T > | max (const octave_int< T > &x, const octave_int< T > &y, const bool nanflag, const bool realabs) |
| std::complex< double > | max (const std::complex< double > &x, const std::complex< double > &y) |
| std::complex< double > | max (const std::complex< double > &x, const std::complex< double > &y, const bool nanflag) |
| std::complex< double > | max (const std::complex< double > &x, const std::complex< double > &y, const bool nanflag, const bool realabs) |
| std::complex< float > | max (const std::complex< float > &x, const std::complex< float > &y) |
| std::complex< float > | max (const std::complex< float > &x, const std::complex< float > &y, const bool nanflag) |
| std::complex< float > | max (const std::complex< float > &x, const std::complex< float > &y, const bool nanflag, const bool realabs) |
| double | max (double x, double y) |
| double | max (double x, double y, const bool nanflag) |
| double | max (double x, double y, const bool nanflag, const bool realabs) |
| float | max (float x, float y) |
| float | max (float x, float y, const bool nanflag) |
| float | max (float x, float y, const bool nanflag, const bool realabs) |
| template<typename T > | |
| T | max (T x, T y) |
| char | min (char x, char y) |
| template<typename T > | |
| octave_int< T > | min (const octave_int< T > &x, const octave_int< T > &y) |
| template<typename T > | |
| octave_int< T > | min (const octave_int< T > &x, const octave_int< T > &y, const bool nanflag) |
| template<typename T > | |
| octave_int< T > | min (const octave_int< T > &x, const octave_int< T > &y, const bool nanflag, const bool realabs) |
| std::complex< double > | min (const std::complex< double > &x, const std::complex< double > &y) |
| std::complex< double > | min (const std::complex< double > &x, const std::complex< double > &y, const bool nanflag) |
| std::complex< double > | min (const std::complex< double > &x, const std::complex< double > &y, const bool nanflag, const bool realabs) |
| std::complex< float > | min (const std::complex< float > &x, const std::complex< float > &y) |
| std::complex< float > | min (const std::complex< float > &x, const std::complex< float > &y, const bool nanflag) |
| std::complex< float > | min (const std::complex< float > &x, const std::complex< float > &y, const bool nanflag, const bool realabs) |
| double | min (double x, double y) |
| double | min (double x, double y, const bool nanflag) |
| double | min (double x, double y, const bool nanflag, const bool realabs) |
| float | min (float x, float y) |
| float | min (float x, float y, const bool nanflag) |
| float | min (float x, float y, const bool nanflag, const bool realabs) |
| 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) |
Definition at line 84 of file mappers.cc.
References x.
Referenced by 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(), rc_acos(), and rc_acos().
|
extern |
Definition at line 95 of file mappers.cc.
References x.
Definition at line 106 of file mappers.cc.
References x.
Referenced by 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(), rc_asin(), and rc_asin().
|
extern |
Definition at line 117 of file mappers.cc.
References x.
Definition at line 83 of file mappers.h.
References x.
Referenced by 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 |
| std::complex< T > ceil | ( | const std::complex< T > & | x | ) |
Definition at line 115 of file mappers.h.
References x.
Referenced by Fceil(), 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().
| std::complex< T > conj | ( | const std::complex< T > & | x | ) |
| std::complex< T > fix | ( | const std::complex< T > & | x | ) |
Definition at line 130 of file mappers.h.
References x.
Referenced by Ffix(), 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().
| std::complex< T > floor | ( | const std::complex< T > & | x | ) |
Definition at line 142 of file mappers.h.
References x.
Referenced by Faddeeva_w(), Ffloor(), 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().
Definition at line 128 of file mappers.cc.
References octave_frexp_wrapper(), and x.
Referenced by log2(), log2(), and octave_frexp_wrapper().
Definition at line 134 of file mappers.cc.
References octave_frexpf_wrapper(), and x.
Definition at line 245 of file mappers.h.
References isfinite(), and x.
Referenced by isinteger(), and isinteger().
Definition at line 246 of file mappers.h.
References isfinite(), and x.
Definition at line 70 of file mappers.cc.
|
extern |
Definition at line 76 of file mappers.cc.
| bool isfinite | ( | const std::complex< T > & | x | ) |
Definition at line 234 of file mappers.h.
References isfinite(), and x.
Definition at line 229 of file mappers.h.
References x.
Referenced by __lo_ieee_float_isfinite(), __lo_ieee_isfinite(), Fisfinite(), is_integer(), is_integer(), isfinite(), 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().
| bool isinf | ( | const octave_int< T > & | ) |
| bool isinf | ( | const std::complex< T > & | x | ) |
Definition at line 212 of file mappers.h.
References x.
Referenced by __lo_ieee_float_isinf(), __lo_ieee_isinf(), Faddeeva_w(), Fisinf(), 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().
Definition at line 249 of file mappers.h.
References is_integer(), and x.
Referenced by Faudiowrite(), Fbase64_encode(), Fintmax(), Fintmin(), Fisinteger(), Fmod(), Fordqz(), and Frem().
Definition at line 252 of file mappers.h.
References is_integer(), and x.
Definition at line 52 of file mappers.cc.
|
extern |
Definition at line 64 of file mappers.cc.
Definition at line 46 of file mappers.cc.
References lo_ieee_is_NA, and x.
Referenced by Fisna(), isna(), 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(), and octave_scalar::map().
Definition at line 58 of file mappers.cc.
References lo_ieee_is_NA, and x.
Definition at line 192 of file mappers.h.
Referenced by __lo_ieee_float_isnan(), __lo_ieee_isnan(), Faddeeva_Dawson(), Faddeeva_erf(), Faddeeva_w(), Fisnan(), is_NaN_or_NA(), is_NaN_or_NA(), 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(), max(), max(), max(), max(), max(), max(), max(), max(), max(), max(), max(), min(), min(), min(), min(), min(), min(), min(), min(), min(), min(), min(), min(), signum(), and signum().
| bool isnan | ( | const octave_int< T > & | ) |
| bool isnan | ( | const std::complex< T > & | x | ) |
Definition at line 140 of file mappers.cc.
References x.
Referenced by Flog2(), log2(), log2(), 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(), rc_log2(), and rc_log2().
Definition at line 164 of file mappers.cc.
|
extern |
Definition at line 146 of file mappers.cc.
References x.
|
extern |
Definition at line 172 of file mappers.cc.
Definition at line 152 of file mappers.cc.
Definition at line 158 of file mappers.cc.
|
inline |
|
inline |
Definition at line 702 of file mappers.h.
References octave_int< T >::value(), and x.
|
inline |
Definition at line 717 of file mappers.h.
References octave_int< T >::value(), and x.
|
inline |
Definition at line 740 of file mappers.h.
References mappers_abs(), octave_int< T >::value(), and x.
|
inline |
Definition at line 695 of file mappers.h.
References octave_int< T >::value(), and x.
|
inline |
Definition at line 709 of file mappers.h.
References octave_int< T >::value(), and x.
|
inline |
Definition at line 725 of file mappers.h.
References mappers_abs(), octave_int< T >::value(), and x.
| T mod | ( | T | x, |
| T | y | ||
| ) |
Definition at line 324 of file mappers.h.
References copysign(), round(), and x.
Referenced by algams(), cacai(), cacon(), casyi(), cbesh(), cbesi(), cbesj(), cuni2(), cunk1(), cunk2(), dlgams(), ignuin(), phrtsd(), zacai(), zacon(), zasyi(), zbesh(), zbesi(), zbesj(), zuni2(), zunk1(), and zunk2().
Definition at line 180 of file mappers.cc.
Referenced by positive_sign(), and positive_sign().
Definition at line 182 of file mappers.cc.
|
extern |
Definition at line 187 of file mappers.cc.
|
extern |
Definition at line 201 of file mappers.cc.
Definition at line 74 of file mappers.h.
References negative_sign(), and x.
Definition at line 75 of file mappers.h.
References negative_sign(), and x.
Definition at line 240 of file mappers.cc.
|
extern |
Definition at line 246 of file mappers.cc.
Definition at line 253 of file mappers.cc.
|
extern |
Definition at line 259 of file mappers.cc.
Definition at line 265 of file mappers.cc.
|
extern |
Definition at line 271 of file mappers.cc.
Definition at line 278 of file mappers.cc.
|
extern |
Definition at line 284 of file mappers.cc.
Definition at line 291 of file mappers.cc.
References x.
|
extern |
Definition at line 297 of file mappers.cc.
References x.
Definition at line 319 of file mappers.cc.
References x.
|
extern |
Definition at line 326 of file mappers.cc.
References x.
Definition at line 304 of file mappers.cc.
|
extern |
Definition at line 311 of file mappers.cc.
Definition at line 334 of file mappers.cc.
References x.
|
extern |
Definition at line 340 of file mappers.cc.
References x.
| T rem | ( | T | x, |
| T | y | ||
| ) |
Definition at line 357 of file mappers.h.
References copysign(), round(), and x.
Referenced by time::time().
| std::complex< T > round | ( | const std::complex< T > & | x | ) |
Definition at line 148 of file mappers.h.
References x.
Referenced by Fround(), 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(), nint(), nint(), nint_big(), nint_big(), rem(), round(), roundb(), roundb(), x_nint(), and x_nint().
| std::complex< T > roundb | ( | const std::complex< T > & | x | ) |
Definition at line 159 of file mappers.h.
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().
Definition at line 66 of file mappers.h.
References x.
Referenced by __lo_ieee_float_signbit(), __lo_ieee_signbit(), negative_sign(), and negative_sign().
| std::complex< T > signum | ( | const std::complex< T > & | x | ) |
Definition at line 255 of file mappers.h.
Referenced by 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(), and octave_strsignal_wrapper().
| std::complex< T > trunc | ( | const std::complex< T > & | x | ) |