23 #if ! defined (octave_lo_utils_h) 24 #define octave_lo_utils_h 1 26 #include "octave-config.h" 39 template <
typename F,
typename T,
bool zero>
45 for (
i = 0;
i < len - 3;
i += 4)
67 extern OCTAVE_API
bool xis_zero (
double x);
74 extern OCTAVE_API
bool xis_zero (
float x);
77 extern OCTAVE_API
char *
strsave (
const char *);
79 extern OCTAVE_API
void 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
OCTAVE_API void octave_write_float(std::ostream &os, float dval)
double octave_read_double(std::istream &is)
bool any_all_test(F fcn, const T *m, octave_idx_type len)
OCTAVE_API void octave_write_double(std::ostream &os, double dval)
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by zero($0/0$)
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 void octave_write_float_complex(std::ostream &os, const FloatComplex &cval)
OCTAVE_API char * strsave(const char *)
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)
T octave_read_value(std::istream &is)
std::complex< float > FloatComplex
std::complex< double > Complex
OCTAVE_API bool xtoo_large_for_float(double x)
write the output to stdout if nargout is
OCTAVE_API std::string octave_fgets(std::FILE *)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
float octave_read_float(std::istream &is)
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)