#include <cstdio>
#include <iostream>
#include <string>
#include "lo-cutils.h"
#include "oct-cmplx.h"
Go to the source code of this file.
Functions | |
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 *, bool &eof) |
OCTAVE_API std::string | octave_fgets (std::FILE *) |
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<> | |
OCTAVE_API double | octave_read_value (std::istream &is) |
template<typename T > | |
T | 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 (float x) |
OCTAVE_API bool | xis_int_or_inf_or_nan (double x) |
OCTAVE_API bool | xis_one_or_zero (double x) |
OCTAVE_API bool | xis_one_or_zero (float x) |
OCTAVE_API bool | xis_zero (float x) |
OCTAVE_API bool | xis_zero (double x) |
OCTAVE_API bool | xtoo_large_for_float (double x) |
OCTAVE_API bool | xtoo_large_for_float (float x) |
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 * | , | |
bool & | eof | |||
) |
OCTAVE_API std::string octave_fgets | ( | std::FILE * | ) |
OCTAVE_API void octave_putenv | ( | const std::string & | , | |
const std::string & | ||||
) |
Definition at line 89 of file lo-utils.cc.
References current_liboctave_error_handler.
Referenced by octave_env::putenv().
Complex octave_read_complex | ( | std::istream & | is | ) | [inline] |
Definition at line 77 of file lo-utils.h.
double octave_read_double | ( | std::istream & | is | ) | [inline] |
Definition at line 71 of file lo-utils.h.
Referenced by DEFUN_DLD().
float octave_read_float | ( | std::istream & | is | ) | [inline] |
Definition at line 83 of file lo-utils.h.
FloatComplex octave_read_float_complex | ( | std::istream & | is | ) | [inline] |
Definition at line 89 of file lo-utils.h.
OCTAVE_API double octave_read_value | ( | std::istream & | is | ) |
Definition at line 469 of file lo-utils.cc.
T octave_read_value | ( | std::istream & | is | ) |
Definition at line 57 of file lo-utils.h.
OCTAVE_API void octave_write_complex | ( | std::ostream & | os, | |
const Complex & | cval | |||
) |
Definition at line 524 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 | |||
) |
Definition at line 511 of file lo-utils.cc.
References lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
Referenced by octave_write_complex(), operator<<(), octave_scalar::save_ascii(), octave_range::save_ascii(), octave_bool::save_ascii(), and save_mat_ascii_data().
OCTAVE_API void octave_write_float | ( | std::ostream & | os, | |
float | dval | |||
) |
Definition at line 534 of file lo-utils.cc.
References lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
Referenced by octave_write_float_complex(), operator<<(), and octave_float_scalar::save_ascii().
OCTAVE_API void octave_write_float_complex | ( | std::ostream & | os, | |
const FloatComplex & | cval | |||
) |
Definition at line 547 of file lo-utils.cc.
References imag(), octave_write_float(), and real.
Referenced by octave_float_complex::save_ascii().
Definition at line 71 of file lo-utils.cc.
Referenced by mxArray_struct::add_field(), string_vector::c_str_vec(), DEFUN(), error_1(), mex::function_name(), mxArray_octave_value::get_class_name(), handle_message(), mxArray_struct::init(), octave_strptime::init(), keyword_almost_match(), mxArray_struct::mxArray_struct(), octave_time::octave_time(), printf_format_elt::operator=(), scanf_format_elt::operator=(), pr_where_2(), and octave_base_tm::strftime().
Definition at line 59 of file lo-utils.cc.
Definition at line 47 of file lo-utils.cc.
References D_NINT(), and xisnan().
Referenced by FloatNDArray::all_elements_are_int_or_inf_or_nan(), FloatMatrix::all_elements_are_int_or_inf_or_nan(), NDArray::all_elements_are_int_or_inf_or_nan(), and Matrix::all_elements_are_int_or_inf_or_nan().
Definition at line 50 of file lo-utils.cc.
Referenced by FloatNDArray::any_element_not_one_or_zero(), FloatMatrix::any_element_not_one_or_zero(), NDArray::any_element_not_one_or_zero(), and Matrix::any_element_not_one_or_zero().
Definition at line 62 of file lo-utils.cc.
Definition at line 65 of file lo-utils.cc.
Definition at line 53 of file lo-utils.cc.
Referenced by FloatNDArray::all_elements_are_zero(), and NDArray::all_elements_are_zero().
Definition at line 56 of file lo-utils.cc.
References xisinf(), and xisnan().
Referenced by NDArray::too_large_for_float(), and Matrix::too_large_for_float().