23 #if !defined (octave_lo_utils_h)
24 #define octave_lo_utils_h 1
38 template <
class F,
class T,
bool zero>
44 for (i = 0; i < len - 3; i += 4)
48 if (fcn (m[i]) != zero
49 || fcn (m[i+1]) != zero
50 || fcn (m[i+2]) != zero
51 || fcn (m[i+3]) != zero)
58 if (fcn (m[i]) != zero)
66 extern OCTAVE_API
bool xis_zero (
double x);
73 extern OCTAVE_API
bool xis_zero (
float x);
76 extern OCTAVE_API
char *
strsave (
const char *);
78 extern OCTAVE_API
void
81 extern OCTAVE_API std::string
octave_fgets (std::FILE *);
82 extern OCTAVE_API std::string
octave_fgetl (std::FILE *);
84 extern OCTAVE_API std::string
octave_fgets (std::FILE *,
bool& eof);
85 extern OCTAVE_API std::string
octave_fgetl (std::FILE *,
bool& eof);
105 return octave_read_value<double> (is);
111 return octave_read_value<Complex> (is);
117 return octave_read_value<float> (is);
123 return octave_read_value<FloatComplex> (is);
126 extern OCTAVE_API
void
129 extern OCTAVE_API
void
132 extern OCTAVE_API
void
135 extern OCTAVE_API
void
static bool ifcontinued(int status)
OCTAVE_API void octave_write_float(std::ostream &os, float dval)
double octave_read_double(std::istream &is)
OCTAVE_API int octave_wstopsig(int status)
bool any_all_test(F fcn, const T *m, octave_idx_type len)
static int termsig(int status)
OCTAVE_API void octave_write_double(std::ostream &os, double dval)
static bool ifexited(int status)
OCTAVE_API int octave_wcoredump(int status)
OCTAVE_API std::string octave_fgetl(std::FILE *)
OCTAVE_API int octave_wtermsig(int status)
OCTAVE_API int octave_wifstopped(int status)
Complex octave_read_complex(std::istream &is)
static int stopsig(int status)
OCTAVE_API int octave_wexitstatus(int status)
OCTAVE_API bool xis_one_or_zero(double x)
OCTAVE_API void octave_write_float_complex(std::ostream &os, const FloatComplex &cval)
OCTAVE_API char * strsave(const char *)
OCTAVE_API int octave_wifcontinued(int status)
OCTAVE_API bool xis_zero(double x)
OCTAVE_API void octave_putenv(const std::string &, const std::string &)
OCTAVE_API bool xis_int_or_inf_or_nan(double x)
OCTAVE_API void octave_write_complex(std::ostream &os, const Complex &cval)
FloatComplex octave_read_float_complex(std::istream &is)
OCTAVE_API int octave_wifsignaled(int status)
static bool ifsignaled(int status)
static bool ifstopped(int status)
static int exitstatus(int status)
static bool coredump(int status)
T octave_read_value(std::istream &is)
std::complex< float > FloatComplex
std::complex< double > Complex
OCTAVE_API bool xtoo_large_for_float(double x)
OCTAVE_API std::string octave_fgets(std::FILE *)
float octave_read_float(std::istream &is)
F77_RET_T const double * x
OCTAVE_API int octave_wifexited(int status)
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)