#include "octave-config.h"
#include <cstdio>
#include <iosfwd>
#include <string>
#include "lo-cutils.h"
#include "oct-cmplx.h"
#include "quit.h"
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) |
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 > | |
T | octave_read_value (std::istream &is) |
template<> | |
OCTAVE_API double | 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 (const Complex &x) |
OCTAVE_API bool | xtoo_large_for_float (double x) |
OCTAVE_API bool | xtoo_large_for_float (float x) |
bool any_all_test | ( | F | fcn, |
const T * | m, | ||
octave_idx_type | len | ||
) |
Definition at line 44 of file lo-utils.h.
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 | ||
) |
|
inline |
Definition at line 110 of file lo-utils.h.
|
inline |
Definition at line 104 of file lo-utils.h.
Referenced by Fdlmread(), and get_lines_and_columns().
|
inline |
Definition at line 116 of file lo-utils.h.
|
inline |
Definition at line 122 of file lo-utils.h.
T octave_read_value | ( | std::istream & | is | ) |
Definition at line 90 of file lo-utils.h.
References retval.
OCTAVE_API double octave_read_value | ( | std::istream & | is | ) |
Definition at line 366 of file lo-utils.cc.
References retval.
OCTAVE_API void octave_write_complex | ( | std::ostream & | os, |
const Complex & | cval | ||
) |
Definition at line 400 of file lo-utils.cc.
References imag(), octave_write_double(), and real().
Referenced by octave_complex::save_ascii().
OCTAVE_API void octave_write_double | ( | std::ostream & | os, |
double | dval | ||
) |
Definition at line 387 of file lo-utils.cc.
References d, lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
Referenced by octave_write_complex(), octave_bool::save_ascii(), octave_range::save_ascii(), octave_scalar::save_ascii(), and save_mat_ascii_data().
OCTAVE_API void octave_write_float | ( | std::ostream & | os, |
float | dval | ||
) |
Definition at line 410 of file lo-utils.cc.
References d, lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
Referenced by octave_write_float_complex(), and octave_float_scalar::save_ascii().
OCTAVE_API void octave_write_float_complex | ( | std::ostream & | os, |
const FloatComplex & | cval | ||
) |
Definition at line 423 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 * | s | ) |
Definition at line 79 of file lo-utils.cc.
OCTAVE_API bool xis_int_or_inf_or_nan | ( | double | x | ) |
Definition at line 46 of file lo-utils.cc.
References octave::math::isnan(), x, and octave::math::x_nint().
Referenced by NDArray::all_elements_are_int_or_inf_or_nan(), and FloatNDArray::all_elements_are_int_or_inf_or_nan().
OCTAVE_API bool xis_int_or_inf_or_nan | ( | float | x | ) |
Definition at line 67 of file lo-utils.cc.
References octave::math::isnan(), x, and octave::math::x_nint().
OCTAVE_API bool xis_one_or_zero | ( | double | x | ) |
Definition at line 49 of file lo-utils.cc.
References x.
Referenced by NDArray::any_element_not_one_or_zero(), and FloatNDArray::any_element_not_one_or_zero().
OCTAVE_API bool xis_one_or_zero | ( | float | x | ) |
Definition at line 70 of file lo-utils.cc.
References x.
OCTAVE_API bool xis_zero | ( | double | x | ) |
Definition at line 52 of file lo-utils.cc.
References x.
Referenced by NDArray::all_elements_are_zero(), and FloatNDArray::all_elements_are_zero().
OCTAVE_API bool xis_zero | ( | float | x | ) |
Definition at line 73 of file lo-utils.cc.
References x.
OCTAVE_API bool xtoo_large_for_float | ( | const Complex & | x | ) |
Definition at line 61 of file lo-utils.cc.
References x, and xtoo_large_for_float().
OCTAVE_API bool xtoo_large_for_float | ( | double | x | ) |
Definition at line 55 of file lo-utils.cc.
References octave::math::isfinite(), max(), and x.
Referenced by ComplexNDArray::too_large_for_float(), SparseComplexMatrix::too_large_for_float(), NDArray::too_large_for_float(), SparseMatrix::too_large_for_float(), and xtoo_large_for_float().
OCTAVE_API bool xtoo_large_for_float | ( | float | x | ) |