26 #if ! defined (octave_lo_utils_h)
27 #define octave_lo_utils_h 1
29 #include "octave-config.h"
42 template <
typename F,
typename T,
bool zero>
48 for (i = 0; i <
len - 3; i += 4)
52 if (fcn (
m[i]) != zero
53 || fcn (
m[i+1]) != zero
54 || fcn (
m[i+2]) != zero
55 || fcn (
m[i+3]) != zero)
62 if (fcn (
m[i]) != zero)
70 extern OCTAVE_API
bool xis_zero (
double x);
77 extern OCTAVE_API
bool xis_zero (
float x);
80 extern OCTAVE_API
char *
strsave (
const char *);
85 extern OCTAVE_API std::string
octave_fgets (std::FILE *,
bool& eof);
86 extern OCTAVE_API std::string
octave_fgetl (std::FILE *,
bool& eof);
106 return octave_read_value<double> (is);
112 return octave_read_value<Complex> (is);
118 return octave_read_value<float> (is);
124 return octave_read_value<FloatComplex> (is);
127 extern OCTAVE_API
void
130 extern OCTAVE_API
void
133 extern OCTAVE_API
void
136 extern OCTAVE_API
void
F77_RET_T const F77_DBLE * x
OCTAVE_API void octave_write_complex(std::ostream &os, const Complex &cval)
OCTAVE_API bool xtoo_large_for_float(double x)
OCTAVE_API bool xis_zero(double x)
float octave_read_float(std::istream &is)
OCTAVE_API std::string octave_fgets(std::FILE *)
double octave_read_double(std::istream &is)
OCTAVE_API void octave_write_double(std::ostream &os, double dval)
OCTAVE_API std::string octave_fgetl(std::FILE *)
Complex octave_read_complex(std::istream &is)
OCTAVE_API bool xis_one_or_zero(double x)
OCTAVE_API bool xis_int_or_inf_or_nan(double x)
OCTAVE_API void octave_write_float_complex(std::ostream &os, const FloatComplex &cval)
OCTAVE_API char * strsave(const char *)
OCTAVE_API void octave_write_float(std::ostream &os, float dval)
T octave_read_value(std::istream &is)
bool any_all_test(F fcn, const T *m, octave_idx_type len)
FloatComplex octave_read_float_complex(std::istream &is)
std::complex< double > Complex
std::complex< float > FloatComplex
octave_value::octave_value(const Array< char > &chm, char type) return retval