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
Functions
lo-utils.h File Reference
#include "octave-config.h"
#include <cstdio>
#include <iostream>
#include <string>
#include "quit.h"
#include "lo-cutils.h"
#include "oct-cmplx.h"
Include dependency graph for lo-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename F , typename T , bool zero>
bool any_all_test (F fcn, const T *m, octave_idx_type len)
 
OCTAVE_API std::string octave_fgetl (std::FILE *)
 
OCTAVE_API std::string octave_fgetl (std::FILE *, bool &eof)
 
OCTAVE_API std::string octave_fgets (std::FILE *)
 
OCTAVE_API std::string octave_fgets (std::FILE *, bool &eof)
 
OCTAVE_API void octave_putenv (const std::string &, const std::string &)
 
Complex octave_read_complex (std::istream &is)
 
double octave_read_double (std::istream &is)
 
float octave_read_float (std::istream &is)
 
FloatComplex octave_read_float_complex (std::istream &is)
 
template<typename T >
octave_read_value (std::istream &is)
 
template<>
OCTAVE_API double octave_read_value (std::istream &is)
 
template<>
OCTAVE_API Complex octave_read_value (std::istream &is)
 
template<>
OCTAVE_API float octave_read_value (std::istream &is)
 
template<>
OCTAVE_API FloatComplex octave_read_value (std::istream &is)
 
OCTAVE_API void octave_write_complex (std::ostream &os, const Complex &cval)
 
OCTAVE_API void octave_write_double (std::ostream &os, double dval)
 
OCTAVE_API void octave_write_float (std::ostream &os, float dval)
 
OCTAVE_API void octave_write_float_complex (std::ostream &os, const FloatComplex &cval)
 
OCTAVE_API char * strsave (const char *)
 
OCTAVE_API bool xis_int_or_inf_or_nan (double x)
 
OCTAVE_API bool xis_int_or_inf_or_nan (float x)
 
OCTAVE_API bool xis_one_or_zero (double x)
 
OCTAVE_API bool xis_one_or_zero (float x)
 
OCTAVE_API bool xis_zero (double x)
 
OCTAVE_API bool xis_zero (float x)
 
OCTAVE_API bool xtoo_large_for_float (double x)
 
OCTAVE_API bool xtoo_large_for_float (const Complex &x)
 
OCTAVE_API bool xtoo_large_for_float (float x)
 

Function Documentation

template<typename F , typename T , bool zero>
bool any_all_test ( F  fcn,
const T *  m,
octave_idx_type  len 
)

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

References zero.

OCTAVE_API std::string octave_fgetl ( std::FILE *  )
OCTAVE_API std::string octave_fgetl ( std::FILE *  ,
bool eof 
)
OCTAVE_API std::string octave_fgets ( std::FILE *  )
OCTAVE_API std::string octave_fgets ( std::FILE *  ,
bool eof 
)
OCTAVE_API void octave_putenv ( const std::string ,
const std::string  
)

Definition at line 95 of file lo-utils.cc.

References current_liboctave_error_handler, malloc(), and octave_putenv_wrapper().

Referenced by octave::sys::env::putenv().

Complex octave_read_complex ( std::istream &  is)
inline

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

References is.

double octave_read_double ( std::istream &  is)
inline

Definition at line 105 of file lo-utils.h.

References is.

Referenced by get_lines_and_columns().

float octave_read_float ( std::istream &  is)
inline

Definition at line 117 of file lo-utils.h.

References is.

FloatComplex octave_read_float_complex ( std::istream &  is)
inline

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

References is.

template<typename T >
T octave_read_value ( std::istream &  is)

Definition at line 91 of file lo-utils.h.

References is, and retval.

template<>
OCTAVE_API double octave_read_value ( std::istream &  is)

Definition at line 367 of file lo-utils.cc.

template<>
OCTAVE_API Complex octave_read_value ( std::istream &  is)

Definition at line 367 of file lo-utils.cc.

template<>
OCTAVE_API float octave_read_value ( std::istream &  is)

Definition at line 367 of file lo-utils.cc.

template<>
OCTAVE_API FloatComplex octave_read_value ( std::istream &  is)

Definition at line 367 of file lo-utils.cc.

References is, and retval.

OCTAVE_API void octave_write_complex ( std::ostream &  os,
const Complex cval 
)

Definition at line 401 of file lo-utils.cc.

References imag(), octave_write_double(), and real().

Referenced by operator<<(), and octave_complex::save_ascii().

OCTAVE_API void octave_write_double ( std::ostream &  os,
double  dval 
)
OCTAVE_API void octave_write_float ( std::ostream &  os,
float  dval 
)
OCTAVE_API void octave_write_float_complex ( std::ostream &  os,
const FloatComplex cval 
)

Definition at line 424 of file lo-utils.cc.

References imag(), octave_write_float(), and real().

Referenced by octave_float_complex::save_ascii().

OCTAVE_API char* strsave ( const char *  )

Definition at line 78 of file lo-utils.cc.

References strlen(), and tmp.

OCTAVE_API bool xis_int_or_inf_or_nan ( double  x)
OCTAVE_API bool xis_int_or_inf_or_nan ( float  x)

Definition at line 66 of file lo-utils.cc.

References octave::math::isnan(), x, and octave::math::x_nint().

OCTAVE_API bool xis_one_or_zero ( double  x)
OCTAVE_API bool xis_one_or_zero ( float  x)

Definition at line 69 of file lo-utils.cc.

OCTAVE_API bool xis_zero ( double  x)
OCTAVE_API bool xis_zero ( float  x)

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

OCTAVE_API bool xtoo_large_for_float ( double  x)
OCTAVE_API bool xtoo_large_for_float ( const Complex x)

Definition at line 60 of file lo-utils.cc.

References xtoo_large_for_float().

OCTAVE_API bool xtoo_large_for_float ( float  x)