GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Functions
lo-ieee.h File Reference
#include "octave-config.h"
Include dependency graph for lo-ieee.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  lo_ieee_double
 
union  lo_ieee_float
 

Macros

#define lo_ieee_finite(x)
 
#define lo_ieee_is_NA(x)
 
#define lo_ieee_is_NaN_or_NA(x)
 
#define lo_ieee_isinf(x)
 
#define lo_ieee_isnan(x)
 
#define LO_IEEE_NA_FLOAT   0x7FC207A2
 
#define LO_IEEE_NA_HW   0x7FF840F4
 
#define LO_IEEE_NA_HW_OLD   0x7ff00000
 
#define LO_IEEE_NA_LW   0x40000000
 
#define LO_IEEE_NA_LW_OLD   1954
 
#define lo_ieee_signbit(x)
 
#define octave_Float_Inf   (lo_ieee_float_inf_value ())
 
#define octave_Float_NA   (lo_ieee_float_na_value ())
 
#define octave_Float_NaN   (lo_ieee_float_nan_value ())
 
#define octave_Inf   (lo_ieee_inf_value ())
 
#define octave_NA   (lo_ieee_na_value ())
 
#define octave_NaN   (lo_ieee_nan_value ())
 

Functions

OCTAVE_API int __lo_ieee_finite (double x)
 
OCTAVE_API int __lo_ieee_float_finite (float x)
 
OCTAVE_API int __lo_ieee_float_is_NA (float)
 
OCTAVE_API int __lo_ieee_float_isinf (float x)
 
OCTAVE_API int __lo_ieee_float_isnan (float x)
 
OCTAVE_API int __lo_ieee_float_signbit (float)
 
OCTAVE_API int __lo_ieee_is_NA (double)
 
OCTAVE_API int __lo_ieee_is_old_NA (double)
 
OCTAVE_API int __lo_ieee_isinf (double x)
 
OCTAVE_API int __lo_ieee_isnan (double x)
 
OCTAVE_API double __lo_ieee_replace_old_NA (double)
 
OCTAVE_API int __lo_ieee_signbit (double)
 
OCTAVE_API float lo_ieee_float_inf_value (void)
 
OCTAVE_API float lo_ieee_float_na_value (void)
 
OCTAVE_API float lo_ieee_float_nan_value (void)
 
OCTAVE_API double lo_ieee_inf_value (void)
 
OCTAVE_API double lo_ieee_na_value (void)
 
OCTAVE_API double lo_ieee_nan_value (void)
 
OCTAVE_API void octave_ieee_init (void)
 

Macro Definition Documentation

#define lo_ieee_finite (   x)
Value:
(sizeof (x) == sizeof (float) \
OCTAVE_API int __lo_ieee_finite(double x)
Definition: lo-ieee.cc:61
OCTAVE_API int __lo_ieee_float_finite(float x)
Definition: lo-ieee.cc:156
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x

Definition at line 107 of file lo-ieee.h.

Referenced by octave::math::finite(), and mxIsFinite().

#define lo_ieee_is_NA (   x)
Value:
(sizeof (x) == sizeof (float) \
OCTAVE_API int __lo_ieee_is_NA(double)
Definition: lo-ieee.cc:83
OCTAVE_API int __lo_ieee_float_is_NA(float)
Definition: lo-ieee.cc:178
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x

Definition at line 115 of file lo-ieee.h.

Referenced by octave_base_stream::do_numeric_printf_conv(), octave::math::is_NA(), octave_write_double(), and octave_write_float().

#define lo_ieee_is_NaN_or_NA (   x)
Value:
(sizeof (x) == sizeof (float) \
? __lo_ieee_float_is_NaN_or_NA (x) : __lo_ieee_is_NaN_or_NA (x))
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x

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

#define lo_ieee_isinf (   x)
Value:
(sizeof (x) == sizeof (float) \
OCTAVE_API int __lo_ieee_isinf(double x)
Definition: lo-ieee.cc:72
OCTAVE_API int __lo_ieee_float_isinf(float x)
Definition: lo-ieee.cc:167
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x

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

Referenced by octave_base_stream::do_numeric_printf_conv(), octave::math::isinf(), matrix_norm(), mxIsInf(), octave_write_double(), octave_write_float(), svd_matrix_norm(), and xlgamma().

#define lo_ieee_isnan (   x)
Value:
(sizeof (x) == sizeof (float) \
OCTAVE_API int __lo_ieee_isnan(double x)
Definition: lo-ieee.cc:50
OCTAVE_API int __lo_ieee_float_isnan(float x)
Definition: lo-ieee.cc:145
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x

Definition at line 103 of file lo-ieee.h.

Referenced by octave_float_complex::any(), octave_scalar::any(), octave_float_scalar::any(), octave_complex::any(), convert_to_valid_int(), get_size(), octave::math::isnan(), mxIsNaN(), octave_write_double(), octave_write_float(), and xlgamma().

#define LO_IEEE_NA_FLOAT   0x7FC207A2

Definition at line 69 of file lo-ieee.h.

Referenced by __lo_ieee_float_is_NA(), and octave_ieee_init().

#define LO_IEEE_NA_HW   0x7FF840F4

Definition at line 67 of file lo-ieee.h.

Referenced by __lo_ieee_is_NA(), and octave_ieee_init().

#define LO_IEEE_NA_HW_OLD   0x7ff00000

Definition at line 65 of file lo-ieee.h.

Referenced by __lo_ieee_is_old_NA().

#define LO_IEEE_NA_LW   0x40000000

Definition at line 68 of file lo-ieee.h.

Referenced by __lo_ieee_is_NA(), and octave_ieee_init().

#define LO_IEEE_NA_LW_OLD   1954

Definition at line 66 of file lo-ieee.h.

Referenced by __lo_ieee_is_old_NA().

#define lo_ieee_signbit (   x)
Value:
(sizeof (x) == sizeof (float) \
OCTAVE_API int __lo_ieee_float_signbit(float)
Definition: lo-ieee.cc:210
OCTAVE_API int __lo_ieee_signbit(double)
Definition: lo-ieee.cc:134
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x

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

Referenced by SparseMatrix::any_element_is_negative(), and pr_complex().

#define octave_Float_Inf   (lo_ieee_float_inf_value ())

Definition at line 42 of file lo-ieee.h.

#define octave_Float_NA   (lo_ieee_float_na_value ())

Definition at line 45 of file lo-ieee.h.

#define octave_Float_NaN   (lo_ieee_float_nan_value ())

Definition at line 48 of file lo-ieee.h.

#define octave_Inf   (lo_ieee_inf_value ())

Definition at line 33 of file lo-ieee.h.

Referenced by xlgamma().

#define octave_NA   (lo_ieee_na_value ())

Definition at line 36 of file lo-ieee.h.

Referenced by G__glpk__(), lin_interpn(), and single_num().

#define octave_NaN   (lo_ieee_nan_value ())

Definition at line 39 of file lo-ieee.h.

Function Documentation

OCTAVE_API int __lo_ieee_finite ( double  x)

Definition at line 61 of file lo-ieee.cc.

References octave::math::finite().

OCTAVE_API int __lo_ieee_float_finite ( float  x)

Definition at line 156 of file lo-ieee.cc.

References __lo_ieee_float_isnan(), and octave::math::finite().

OCTAVE_API int __lo_ieee_float_is_NA ( float  )
OCTAVE_API int __lo_ieee_float_isinf ( float  x)

Definition at line 167 of file lo-ieee.cc.

References octave::math::isinf().

OCTAVE_API int __lo_ieee_float_isnan ( float  x)

Definition at line 145 of file lo-ieee.cc.

References octave::math::isnan().

Referenced by __lo_ieee_float_finite(), and __lo_ieee_float_is_NA().

OCTAVE_API int __lo_ieee_float_signbit ( float  )

Definition at line 210 of file lo-ieee.cc.

References octave::math::signbit().

Referenced by octave::math::negative_sign().

OCTAVE_API int __lo_ieee_is_NA ( double  )
OCTAVE_API int __lo_ieee_is_old_NA ( double  )
OCTAVE_API int __lo_ieee_isinf ( double  x)

Definition at line 72 of file lo-ieee.cc.

References octave::math::isinf().

OCTAVE_API int __lo_ieee_isnan ( double  x)

Definition at line 50 of file lo-ieee.cc.

References octave::math::isnan().

Referenced by __lo_ieee_is_NA(), and __lo_ieee_is_old_NA().

OCTAVE_API double __lo_ieee_replace_old_NA ( double  )

Definition at line 101 of file lo-ieee.cc.

References __lo_ieee_is_old_NA(), lo_ieee_na_value(), and x.

Referenced by read_doubles(), and replace_old_NA< double >().

OCTAVE_API int __lo_ieee_signbit ( double  )

Definition at line 134 of file lo-ieee.cc.

References octave::math::signbit().

Referenced by octave::math::negative_sign().

OCTAVE_API float lo_ieee_float_inf_value ( void  )

Definition at line 186 of file lo-ieee.cc.

References lo_float_inf, and octave_ieee_init().

OCTAVE_API float lo_ieee_float_na_value ( void  )

Definition at line 194 of file lo-ieee.cc.

References lo_float_na, and octave_ieee_init().

OCTAVE_API float lo_ieee_float_nan_value ( void  )
OCTAVE_API double lo_ieee_inf_value ( void  )

Definition at line 110 of file lo-ieee.cc.

References lo_inf, and octave_ieee_init().

Referenced by mxGetInf().

OCTAVE_API double lo_ieee_na_value ( void  )

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

References lo_na, and octave_ieee_init().

Referenced by __lo_ieee_replace_old_NA().

OCTAVE_API double lo_ieee_nan_value ( void  )
OCTAVE_API void octave_ieee_init ( void  )