GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
lo-mappers.h File Reference
#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< doublemax (const std::complex< double > &x, const std::complex< double > &y)
 
std::complex< floatmax (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 >
max (T x, T y)
 
template<typename T >
octave_int< T > min (const octave_int< T > &x, const octave_int< T > &y)
 
std::complex< doublemin (const std::complex< double > &x, const std::complex< double > &y)
 
std::complex< floatmin (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 >
min (T x, T y)
 
template<typename 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 >
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 >
x_nint (T x)
 

Function Documentation

◆ acos() [1/2]

◆ acos() [2/2]

FloatComplex acos ( const FloatComplex x)
extern

Definition at line 96 of file lo-mappers.cc.

References x.

◆ asin() [1/2]

◆ asin() [2/2]

FloatComplex asin ( const FloatComplex x)
extern

Definition at line 118 of file lo-mappers.cc.

References x.

◆ atan() [1/2]

◆ atan() [2/2]

FloatComplex atan ( const FloatComplex x)
inline

Definition at line 72 of file lo-mappers.h.

References x.

◆ ceil()

◆ conj() [1/3]

template<typename T >
std::complex< T > conj ( const std::complex< T > &  x)

Definition at line 81 of file lo-mappers.h.

References x.

◆ conj() [2/3]

double conj ( double  x)
inline

Definition at line 76 of file lo-mappers.h.

References x.

◆ conj() [3/3]

float conj ( float  x)
inline

Definition at line 77 of file lo-mappers.h.

References x.

◆ copysign() [1/2]

double copysign ( double  x,
double  y 
)
inline

Definition at line 51 of file lo-mappers.h.

References x.

Referenced by Faddeeva_w(), mod(), and rem().

◆ copysign() [2/2]

float copysign ( float  x,
float  y 
)
inline

Definition at line 52 of file lo-mappers.h.

References x.

◆ exp2() [1/2]

double exp2 ( double  x)
inline

Definition at line 98 of file lo-mappers.h.

References x.

◆ exp2() [2/2]

float exp2 ( float  x)
inline

Definition at line 99 of file lo-mappers.h.

References x.

◆ fix() [1/3]

template<typename T >
std::complex< T > fix ( const std::complex< T > &  x)

Definition at line 123 of file lo-mappers.h.

References trunc(), and x.

◆ fix() [2/3]

◆ fix() [3/3]

float fix ( float  x)
inline

Definition at line 119 of file lo-mappers.h.

References x.

◆ floor()

◆ frexp() [1/2]

double frexp ( double  x,
int expptr 
)
extern

Definition at line 129 of file lo-mappers.cc.

References octave_frexp_wrapper(), and x.

Referenced by log2(), log2(), and octave_frexp_wrapper().

◆ frexp() [2/2]

float frexp ( float  x,
int expptr 
)
extern

Definition at line 135 of file lo-mappers.cc.

References octave_frexpf_wrapper(), and x.

◆ is_NaN_or_NA() [1/2]

bool is_NaN_or_NA ( const Complex x)
extern

Definition at line 71 of file lo-mappers.cc.

References isnan(), and x.

◆ is_NaN_or_NA() [2/2]

bool is_NaN_or_NA ( const FloatComplex x)
extern

Definition at line 77 of file lo-mappers.cc.

References isnan(), and x.

◆ isfinite() [1/3]

template<typename T >
bool isfinite ( const std::complex< T > &  x)

Definition at line 198 of file lo-mappers.h.

References isfinite(), and x.

◆ isfinite() [2/3]

◆ isfinite() [3/3]

bool isfinite ( float  x)
inline

Definition at line 193 of file lo-mappers.h.

References x.

◆ isinf() [1/4]

template<typename T >
bool isinf ( const octave_int< T > &  )

Definition at line 208 of file lo-mappers.h.

◆ isinf() [2/4]

template<typename T >
bool isinf ( const std::complex< T > &  x)

Definition at line 216 of file lo-mappers.h.

References isinf(), and x.

◆ isinf() [3/4]

◆ isinf() [4/4]

bool isinf ( float  x)
inline

Definition at line 204 of file lo-mappers.h.

References x.

◆ isinteger() [1/2]

bool isinteger ( double  x)
inline

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().

◆ isinteger() [2/2]

bool isinteger ( float  x)
inline

Definition at line 226 of file lo-mappers.h.

References isfinite(), round(), and x.

◆ isna() [1/4]

bool isna ( const Complex x)
extern

Definition at line 53 of file lo-mappers.cc.

References isna(), and x.

◆ isna() [2/4]

bool isna ( const FloatComplex x)
extern

Definition at line 65 of file lo-mappers.cc.

References isna(), and x.

◆ isna() [3/4]

◆ isna() [4/4]

bool isna ( float  x)
extern

Definition at line 59 of file lo-mappers.cc.

References lo_ieee_is_NA, and x.

◆ isnan() [1/5]

◆ isnan() [2/5]

bool isnan ( char  )
inline

Definition at line 179 of file lo-mappers.h.

◆ isnan() [3/5]

template<typename T >
bool isnan ( const std::complex< T > &  x)

Definition at line 187 of file lo-mappers.h.

References isnan(), and x.

◆ isnan() [4/5]

bool isnan ( double  x)
inline

Definition at line 181 of file lo-mappers.h.

References x.

◆ isnan() [5/5]

bool isnan ( float  x)
inline

Definition at line 182 of file lo-mappers.h.

References x.

◆ log2() [1/8]

◆ log2() [2/8]

Complex log2 ( const Complex x,
int exp 
)
extern

Definition at line 165 of file lo-mappers.cc.

References log2(), and x.

◆ log2() [3/8]

FloatComplex log2 ( const FloatComplex x)
extern

Definition at line 147 of file lo-mappers.cc.

References x.

◆ log2() [4/8]

FloatComplex log2 ( const FloatComplex x,
int exp 
)
extern

Definition at line 173 of file lo-mappers.cc.

References log2(), and x.

◆ log2() [5/8]

double log2 ( double  x)
inline

Definition at line 86 of file lo-mappers.h.

References x.

◆ log2() [6/8]

double log2 ( double  x,
int exp 
)
extern

Definition at line 153 of file lo-mappers.cc.

References frexp(), and x.

◆ log2() [7/8]

float log2 ( float  x)
inline

Definition at line 87 of file lo-mappers.h.

References x.

◆ log2() [8/8]

float log2 ( float  x,
int exp 
)
extern

Definition at line 159 of file lo-mappers.cc.

References frexp(), and x.

◆ max() [1/6]

template<typename T >
octave_int< T > max ( const octave_int< T > &  x,
const octave_int< T > &  y 
)
inline

Definition at line 434 of file lo-mappers.h.

References x, and xmax().

◆ max() [2/6]

std::complex< double > max ( const std::complex< double > &  x,
const std::complex< double > &  y 
)
inline

Definition at line 414 of file lo-mappers.h.

References abs(), isnan(), and x.

◆ max() [3/6]

std::complex< float > max ( const std::complex< float > &  x,
const std::complex< float > &  y 
)
inline

Definition at line 420 of file lo-mappers.h.

References abs(), isnan(), and x.

◆ max() [4/6]

double max ( double  x,
double  y 
)
inline

Definition at line 384 of file lo-mappers.h.

References isnan(), and x.

◆ max() [5/6]

float max ( float  x,
float  y 
)
inline

Definition at line 396 of file lo-mappers.h.

References isnan(), and x.

◆ max() [6/6]

template<typename T >
T max ( x,
y 
)

Definition at line 368 of file lo-mappers.h.

References x.

◆ min() [1/6]

template<typename T >
octave_int< T > min ( const octave_int< T > &  x,
const octave_int< T > &  y 
)
inline

Definition at line 427 of file lo-mappers.h.

References x, and xmin().

◆ min() [2/6]

std::complex< double > min ( const std::complex< double > &  x,
const std::complex< double > &  y 
)
inline

Definition at line 402 of file lo-mappers.h.

References abs(), isnan(), and x.

◆ min() [3/6]

std::complex< float > min ( const std::complex< float > &  x,
const std::complex< float > &  y 
)
inline

Definition at line 408 of file lo-mappers.h.

References abs(), isnan(), and x.

◆ min() [4/6]

double min ( double  x,
double  y 
)
inline

Definition at line 378 of file lo-mappers.h.

References isnan(), and x.

◆ min() [5/6]

float min ( float  x,
float  y 
)
inline

Definition at line 390 of file lo-mappers.h.

References isnan(), and x.

◆ min() [6/6]

template<typename T >
T min ( x,
y 
)

Definition at line 361 of file lo-mappers.h.

References x.

◆ mod()

template<typename T >
T mod ( x,
y 
)

◆ negative_sign() [1/2]

bool negative_sign ( double  x)
extern

Definition at line 181 of file lo-mappers.cc.

References signbit(), and x.

Referenced by positive_sign(), and positive_sign().

◆ negative_sign() [2/2]

bool negative_sign ( float  x)
extern

Definition at line 183 of file lo-mappers.cc.

References signbit(), and x.

◆ nint() [1/2]

int nint ( double  x)
extern

Definition at line 216 of file lo-mappers.cc.

References x.

Referenced by dqagpe(), and qagpe().

◆ nint() [2/2]

int nint ( float  x)
extern

Definition at line 227 of file lo-mappers.cc.

References x.

◆ nint_big() [1/2]

octave_idx_type nint_big ( double  x)
extern

Definition at line 188 of file lo-mappers.cc.

References x.

◆ nint_big() [2/2]

octave_idx_type nint_big ( float  x)
extern

Definition at line 202 of file lo-mappers.cc.

References x.

◆ positive_sign() [1/2]

bool positive_sign ( double  x)
inline

Definition at line 62 of file lo-mappers.h.

References negative_sign(), and x.

◆ positive_sign() [2/2]

bool positive_sign ( float  x)
inline

Definition at line 63 of file lo-mappers.h.

References negative_sign(), and x.

◆ rc_acos() [1/2]

Complex rc_acos ( double  x)
extern

Definition at line 241 of file lo-mappers.cc.

References acos(), and x.

◆ rc_acos() [2/2]

FloatComplex rc_acos ( float  x)
extern

Definition at line 247 of file lo-mappers.cc.

References acos(), and x.

◆ rc_acosh() [1/2]

Complex rc_acosh ( double  x)
extern

Definition at line 254 of file lo-mappers.cc.

References acosh(), and x.

◆ rc_acosh() [2/2]

FloatComplex rc_acosh ( float  x)
extern

Definition at line 260 of file lo-mappers.cc.

References acosh(), and x.

◆ rc_asin() [1/2]

Complex rc_asin ( double  x)
extern

Definition at line 266 of file lo-mappers.cc.

References asin(), and x.

◆ rc_asin() [2/2]

FloatComplex rc_asin ( float  x)
extern

Definition at line 272 of file lo-mappers.cc.

References asin(), and x.

◆ rc_atanh() [1/2]

Complex rc_atanh ( double  x)
extern

Definition at line 279 of file lo-mappers.cc.

References atanh(), and x.

◆ rc_atanh() [2/2]

FloatComplex rc_atanh ( float  x)
extern

Definition at line 285 of file lo-mappers.cc.

References atanh(), and x.

◆ rc_log() [1/2]

Complex rc_log ( double  x)
extern

Definition at line 292 of file lo-mappers.cc.

References x.

◆ rc_log() [2/2]

FloatComplex rc_log ( float  x)
extern

Definition at line 298 of file lo-mappers.cc.

References x.

◆ rc_log10() [1/2]

Complex rc_log10 ( double  x)
extern

Definition at line 320 of file lo-mappers.cc.

References x.

◆ rc_log10() [2/2]

FloatComplex rc_log10 ( float  x)
extern

Definition at line 327 of file lo-mappers.cc.

References x.

◆ rc_log2() [1/2]

Complex rc_log2 ( double  x)
extern

Definition at line 305 of file lo-mappers.cc.

References log2(), and x.

◆ rc_log2() [2/2]

FloatComplex rc_log2 ( float  x)
extern

Definition at line 312 of file lo-mappers.cc.

References log2(), and x.

◆ rc_sqrt() [1/2]

Complex rc_sqrt ( double  x)
extern

Definition at line 335 of file lo-mappers.cc.

References x.

◆ rc_sqrt() [2/2]

FloatComplex rc_sqrt ( float  x)
extern

Definition at line 341 of file lo-mappers.cc.

References x.

◆ rem()

template<typename T >
T rem ( x,
y 
)

Definition at line 327 of file lo-mappers.h.

References copysign(), x, and x_nint().

Referenced by time::time().

◆ round() [1/3]

template<typename T >
std::complex< T > round ( const std::complex< T > &  x)

Definition at line 141 of file lo-mappers.h.

References round(), and x.

◆ round() [2/3]

◆ round() [3/3]

float round ( float  x)
inline

Definition at line 137 of file lo-mappers.h.

References x.

◆ roundb() [1/3]

template<typename T >
std::complex< T > roundb ( const std::complex< T > &  x)

Definition at line 170 of file lo-mappers.h.

References roundb(), and x.

◆ roundb() [2/3]

◆ roundb() [3/3]

float roundb ( float  x)
inline

Definition at line 158 of file lo-mappers.h.

References round(), and x.

◆ signbit() [1/2]

double signbit ( double  x)
inline

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().

◆ signbit() [2/2]

float signbit ( float  x)
inline

Definition at line 55 of file lo-mappers.h.

References x.

◆ signum() [1/3]

template<typename T >
std::complex< T > signum ( const std::complex< T > &  x)

Definition at line 256 of file lo-mappers.h.

References abs(), and x.

◆ signum() [2/3]

◆ signum() [3/3]

float signum ( float  x)
inline

Definition at line 242 of file lo-mappers.h.

References isnan(), and x.

◆ trunc()

template<typename T >
std::complex< T > trunc ( const std::complex< T > &  x)

Definition at line 111 of file lo-mappers.h.

References x.

Referenced by fix().

◆ x_nint() [1/3]

template<>
double x_nint ( double  x)
inline

Definition at line 275 of file lo-mappers.h.

References isfinite(), and x.

◆ x_nint() [2/3]

template<>
float x_nint ( float  x)
inline

Definition at line 281 of file lo-mappers.h.

References isfinite(), and x.

◆ x_nint() [3/3]

template<typename T >
T x_nint ( x)

Definition at line 269 of file lo-mappers.h.

References x.

Referenced by mod(), and rem().