#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) |
std::string | fgetl (std::FILE *) |
std::string | fgetl (std::FILE *, bool &eof) |
std::string | fgets (std::FILE *) |
std::string | fgets (std::FILE *, bool &eof) |
bool | int_multiply_overflow (int a, int b, int *r) |
bool | int_multiply_overflow (long int a, long int b, long int *r) |
bool | int_multiply_overflow (unsigned int a, unsigned int b, unsigned int *r) |
bool | int_multiply_overflow (unsigned long int a, unsigned long int b, unsigned long int *r) |
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 > | |
T | read_value (std::istream &is) |
template<> | |
double | read_value (std::istream &is) |
char * | strsave (const char *) |
bool | too_large_for_float (const Complex &x) |
bool | too_large_for_float (double x) |
bool | too_large_for_float (float x) |
template<> | |
void | write_value (std::ostream &os, const Complex &value) |
template<> | |
void | write_value (std::ostream &os, const double &value) |
template<> | |
void | write_value (std::ostream &os, const float &value) |
template<> | |
void | write_value (std::ostream &os, const FloatComplex &value) |
template<typename T > | |
void | write_value (std::ostream &os, const T &value) |
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.
std::string fgetl | ( | std::FILE * | ) |
std::string fgetl | ( | std::FILE * | , |
bool & | eof | ||
) |
std::string fgets | ( | std::FILE * | ) |
std::string fgets | ( | std::FILE * | , |
bool & | eof | ||
) |
bool int_multiply_overflow | ( | int | a, |
int | b, | ||
int * | r | ||
) |
Definition at line 499 of file lo-utils.cc.
References octave_i_multiply_overflow_wrapper(), and r.
bool int_multiply_overflow | ( | long int | a, |
long int | b, | ||
long int * | r | ||
) |
Definition at line 505 of file lo-utils.cc.
References octave_li_multiply_overflow_wrapper(), and r.
bool int_multiply_overflow | ( | unsigned int | a, |
unsigned int | b, | ||
unsigned int * | r | ||
) |
Definition at line 519 of file lo-utils.cc.
References octave_ui_multiply_overflow_wrapper(), and r.
bool int_multiply_overflow | ( | unsigned long int | a, |
unsigned long int | b, | ||
unsigned long int * | r | ||
) |
Definition at line 525 of file lo-utils.cc.
References octave_uli_multiply_overflow_wrapper(), and r.
bool is_int_or_inf_or_nan | ( | float | x | ) |
Definition at line 70 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().
T read_value | ( | std::istream & | is | ) |
Definition at line 191 of file lo-utils.cc.
double read_value | ( | std::istream & | is | ) |
Definition at line 191 of file lo-utils.cc.
char* strsave | ( | const char * | s | ) |
Definition at line 78 of file lo-utils.cc.
bool too_large_for_float | ( | const Complex & | x | ) |
Definition at line 63 of file lo-utils.cc.
References too_large_for_float(), and x.
bool too_large_for_float | ( | double | x | ) |
Definition at line 56 of file lo-utils.cc.
References isfinite(), max(), and x.
Referenced by save_mat5_array_length(), ComplexNDArray::too_large_for_float(), SparseComplexMatrix::too_large_for_float(), NDArray::too_large_for_float(), SparseMatrix::too_large_for_float(), and too_large_for_float().
bool too_large_for_float | ( | float | x | ) |
void write_value | ( | std::ostream & | os, |
const Complex & | value | ||
) |
Definition at line 459 of file lo-utils.cc.
void write_value | ( | std::ostream & | os, |
const double & | value | ||
) |
Definition at line 445 of file lo-utils.cc.
References lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
void write_value | ( | std::ostream & | os, |
const float & | value | ||
) |
Definition at line 473 of file lo-utils.cc.
References lo_ieee_is_NA, lo_ieee_isinf, and lo_ieee_isnan.
void write_value | ( | std::ostream & | os, |
const FloatComplex & | value | ||
) |
Definition at line 487 of file lo-utils.cc.
void write_value | ( | std::ostream & | os, |
const T & | value | ||
) |
Definition at line 416 of file lo-utils.cc.
bool xis_int_or_inf_or_nan | ( | double | x | ) |