#include "octave-config.h"#include <cstdio>#include <iosfwd>#include <string>#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 | fgetl (std::FILE *) |
| OCTAVE_API std::string | fgetl (std::FILE *, bool &eof) |
| OCTAVE_API std::string | fgets (std::FILE *) |
| OCTAVE_API std::string | fgets (std::FILE *, bool &eof) |
| OCTAVE_API bool | int_multiply_overflow (int a, int b, int *r) |
| OCTAVE_API bool | int_multiply_overflow (long int a, long int b, long int *r) |
| OCTAVE_API bool | int_multiply_overflow (unsigned int a, unsigned int b, unsigned int *r) |
| OCTAVE_API bool | int_multiply_overflow (unsigned long int a, unsigned long int b, unsigned long int *r) |
| OCTAVE_API bool | is_int_or_inf_or_nan (float x) |
| template<typename T > | |
| bool | is_one_or_zero (const T &x) |
| template<typename T > | |
| bool | is_zero (const T &x) |
| template<typename T > | |
| OCTAVE_API T | read_value (std::istream &is) |
| template<> | |
| OCTAVE_API double | read_value (std::istream &is) |
| OCTAVE_API char * | strsave (const char *) |
| OCTAVE_API bool | too_large_for_float (const Complex &x) |
| OCTAVE_API bool | too_large_for_float (double x) |
| OCTAVE_API bool | too_large_for_float (float x) |
| template<> | |
| OCTAVE_API void | write_value (std::ostream &os, const Complex &value) |
| template<> | |
| OCTAVE_API void | write_value (std::ostream &os, const double &value) |
| template<> | |
| OCTAVE_API void | write_value (std::ostream &os, const float &value) |
| template<> | |
| OCTAVE_API void | write_value (std::ostream &os, const FloatComplex &value) |
| template<typename T > | |
| OCTAVE_API void | write_value (std::ostream &os, const T &value) |
| OCTAVE_API bool | xis_int_or_inf_or_nan (double x) |
| bool any_all_test | ( | F | fcn, |
| const T * | m, | ||
| octave_idx_type | len | ||
| ) |
Definition at line 45 of file lo-utils.h.
| OCTAVE_API std::string fgetl | ( | std::FILE * | ) |
| OCTAVE_API std::string fgetl | ( | std::FILE * | , |
| bool & | eof | ||
| ) |
| OCTAVE_API std::string fgets | ( | std::FILE * | ) |
| OCTAVE_API std::string fgets | ( | std::FILE * | , |
| bool & | eof | ||
| ) |
| OCTAVE_API bool int_multiply_overflow | ( | int | a, |
| int | b, | ||
| int * | r | ||
| ) |
Definition at line 480 of file lo-utils.cc.
References octave_i_multiply_overflow_wrapper(), and r.
| OCTAVE_API bool int_multiply_overflow | ( | long int | a, |
| long int | b, | ||
| long int * | r | ||
| ) |
Definition at line 485 of file lo-utils.cc.
References octave_li_multiply_overflow_wrapper(), and r.
| OCTAVE_API bool int_multiply_overflow | ( | unsigned int | a, |
| unsigned int | b, | ||
| unsigned int * | r | ||
| ) |
Definition at line 498 of file lo-utils.cc.
References octave_ui_multiply_overflow_wrapper(), and r.
| OCTAVE_API bool int_multiply_overflow | ( | unsigned long int | a, |
| unsigned long int | b, | ||
| unsigned long int * | r | ||
| ) |
Definition at line 504 of file lo-utils.cc.
References octave_uli_multiply_overflow_wrapper(), and r.
| OCTAVE_API bool is_int_or_inf_or_nan | ( | float | x | ) |
Definition at line 67 of file lo-utils.cc.
| bool is_one_or_zero | ( | const T & | x | ) |
Definition at line 72 of file lo-utils.h.
References x.
Referenced by NDArray::any_element_not_one_or_zero(), and FloatNDArray::any_element_not_one_or_zero().
| bool is_zero | ( | const T & | x | ) |
Definition at line 78 of file lo-utils.h.
References x.
Referenced by NDArray::all_elements_are_zero(), and FloatNDArray::all_elements_are_zero().
| OCTAVE_API T read_value | ( | std::istream & | is | ) |
Definition at line 183 of file lo-utils.cc.
| OCTAVE_API double read_value | ( | std::istream & | is | ) |
Definition at line 183 of file lo-utils.cc.
| OCTAVE_API char* strsave | ( | const char * | s | ) |
Definition at line 74 of file lo-utils.cc.
| OCTAVE_API bool too_large_for_float | ( | const Complex & | x | ) |
Definition at line 61 of file lo-utils.cc.
References too_large_for_float(), and x.
| OCTAVE_API bool too_large_for_float | ( | double | x | ) |
Definition at line 55 of file lo-utils.cc.
References isfinite(), max(), and x.
Referenced by save_mat5_array_length(), too_large_for_float(), ComplexNDArray::too_large_for_float(), SparseComplexMatrix::too_large_for_float(), NDArray::too_large_for_float(), and SparseMatrix::too_large_for_float().
| OCTAVE_API bool too_large_for_float | ( | float | x | ) |
| OCTAVE_API void write_value | ( | std::ostream & | os, |
| const Complex & | value | ||
| ) |
Definition at line 443 of file lo-utils.cc.
| OCTAVE_API void write_value | ( | std::ostream & | os, |
| const double & | value | ||
| ) |
Definition at line 430 of file lo-utils.cc.
References lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
| OCTAVE_API void write_value | ( | std::ostream & | os, |
| const float & | value | ||
| ) |
Definition at line 456 of file lo-utils.cc.
References lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
| OCTAVE_API void write_value | ( | std::ostream & | os, |
| const FloatComplex & | value | ||
| ) |
Definition at line 469 of file lo-utils.cc.
| OCTAVE_API void write_value | ( | std::ostream & | os, |
| const T & | value | ||
| ) |
Definition at line 402 of file lo-utils.cc.
| OCTAVE_API bool xis_int_or_inf_or_nan | ( | double | x | ) |