#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) |
Definition at line 85 of file lo-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 96 of file lo-mappers.cc.
References x.
Definition at line 107 of file lo-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 118 of file lo-mappers.cc.
References x.
Definition at line 71 of file lo-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 |
Definition at line 72 of file lo-mappers.h.
References x.
std::complex< T > ceil | ( | const std::complex< T > & | x | ) |
Definition at line 103 of file lo-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 | ) |
Definition at line 81 of file lo-mappers.h.
References x.
Definition at line 76 of file lo-mappers.h.
References x.
Definition at line 77 of file lo-mappers.h.
References x.
Definition at line 51 of file lo-mappers.h.
References x.
Referenced by Faddeeva_w(), mod(), and rem().
Definition at line 52 of file lo-mappers.h.
References x.
Definition at line 98 of file lo-mappers.h.
References x.
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.
Definition at line 118 of file lo-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().
Definition at line 119 of file lo-mappers.h.
References x.
std::complex< T > floor | ( | const std::complex< T > & | x | ) |
Definition at line 130 of file lo-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 129 of file lo-mappers.cc.
References octave_frexp_wrapper(), and x.
Referenced by log2(), log2(), and octave_frexp_wrapper().
Definition at line 135 of file lo-mappers.cc.
References octave_frexpf_wrapper(), and x.
Definition at line 71 of file lo-mappers.cc.
|
extern |
Definition at line 77 of file lo-mappers.cc.
bool isfinite | ( | const std::complex< T > & | x | ) |
Definition at line 198 of file lo-mappers.h.
References isfinite(), and x.
Definition at line 192 of file lo-mappers.h.
References x.
Referenced by __lo_ieee_float_isfinite(), __lo_ieee_isfinite(), Fisfinite(), isfinite(), isinteger(), isinteger(), 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(), x_nint(), and x_nint().
Definition at line 193 of file lo-mappers.h.
References x.
bool isinf | ( | const octave_int< T > & | ) |
Definition at line 208 of file lo-mappers.h.
bool isinf | ( | const std::complex< T > & | x | ) |
Definition at line 216 of file lo-mappers.h.
Definition at line 203 of file lo-mappers.h.
References x.
Referenced by __lo_ieee_float_isinf(), __lo_ieee_isinf(), Faddeeva_w(), Fisinf(), isinf(), 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 204 of file lo-mappers.h.
References x.
Definition at line 225 of file lo-mappers.h.
References isfinite(), round(), and x.
Referenced by Faudiowrite(), Fbase64_encode(), Fintmax(), Fintmin(), Fisinteger(), Fmod(), Fordqz(), and Frem().
Definition at line 226 of file lo-mappers.h.
References isfinite(), round(), and x.
Definition at line 53 of file lo-mappers.cc.
|
extern |
Definition at line 65 of file lo-mappers.cc.
Definition at line 47 of file lo-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 59 of file lo-mappers.cc.
References lo_ieee_is_NA, and x.
Definition at line 178 of file lo-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(), isnan(), 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(), min(), min(), min(), min(), signum(), and signum().
|
inline |
Definition at line 179 of file lo-mappers.h.
bool isnan | ( | const std::complex< T > & | x | ) |
Definition at line 187 of file lo-mappers.h.
Definition at line 181 of file lo-mappers.h.
References x.
Definition at line 182 of file lo-mappers.h.
References x.
Definition at line 141 of file lo-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 165 of file lo-mappers.cc.
|
extern |
Definition at line 147 of file lo-mappers.cc.
References x.
|
extern |
Definition at line 173 of file lo-mappers.cc.
Definition at line 86 of file lo-mappers.h.
References x.
Definition at line 153 of file lo-mappers.cc.
Definition at line 87 of file lo-mappers.h.
References x.
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.
Definition at line 384 of file lo-mappers.h.
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.
Definition at line 378 of file lo-mappers.h.
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 copysign(), x, and x_nint().
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 181 of file lo-mappers.cc.
Referenced by positive_sign(), and positive_sign().
Definition at line 183 of file lo-mappers.cc.
Definition at line 227 of file lo-mappers.cc.
References x.
|
extern |
Definition at line 188 of file lo-mappers.cc.
References x.
|
extern |
Definition at line 202 of file lo-mappers.cc.
References x.
Definition at line 62 of file lo-mappers.h.
References negative_sign(), and x.
Definition at line 63 of file lo-mappers.h.
References negative_sign(), and x.
Definition at line 241 of file lo-mappers.cc.
|
extern |
Definition at line 247 of file lo-mappers.cc.
Definition at line 254 of file lo-mappers.cc.
|
extern |
Definition at line 260 of file lo-mappers.cc.
Definition at line 266 of file lo-mappers.cc.
|
extern |
Definition at line 272 of file lo-mappers.cc.
Definition at line 279 of file lo-mappers.cc.
|
extern |
Definition at line 285 of file lo-mappers.cc.
Definition at line 292 of file lo-mappers.cc.
References x.
|
extern |
Definition at line 298 of file lo-mappers.cc.
References x.
Definition at line 320 of file lo-mappers.cc.
References x.
|
extern |
Definition at line 327 of file lo-mappers.cc.
References x.
Definition at line 305 of file lo-mappers.cc.
|
extern |
Definition at line 312 of file lo-mappers.cc.
Definition at line 335 of file lo-mappers.cc.
References x.
|
extern |
Definition at line 341 of file lo-mappers.cc.
References x.
T rem | ( | T | x, |
T | y | ||
) |
Definition at line 327 of file lo-mappers.h.
References copysign(), x, and x_nint().
Referenced by time::time().
std::complex< T > round | ( | const std::complex< T > & | x | ) |
Definition at line 141 of file lo-mappers.h.
Definition at line 136 of file lo-mappers.h.
References x.
Referenced by Fround(), isinteger(), isinteger(), 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(), round(), roundb(), and roundb().
Definition at line 137 of file lo-mappers.h.
References x.
std::complex< T > roundb | ( | const std::complex< T > & | x | ) |
Definition at line 170 of file lo-mappers.h.
Definition at line 147 of file lo-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 158 of file lo-mappers.h.
Definition at line 54 of file lo-mappers.h.
References x.
Referenced by __lo_ieee_float_signbit(), __lo_ieee_signbit(), negative_sign(), and negative_sign().
Definition at line 55 of file lo-mappers.h.
References x.
std::complex< T > signum | ( | const std::complex< T > & | x | ) |
Definition at line 256 of file lo-mappers.h.
Definition at line 229 of file lo-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().
Definition at line 242 of file lo-mappers.h.
std::complex< T > trunc | ( | const std::complex< T > & | x | ) |
Definition at line 275 of file lo-mappers.h.
References isfinite(), and x.
Definition at line 281 of file lo-mappers.h.
References isfinite(), and x.
T x_nint | ( | T | x | ) |