Mercurial > octave
diff liboctave/lo-utils.h @ 7789:82be108cc558
First attempt at single precision tyeps
* * *
corrections to qrupdate single precision routines
* * *
prefer demotion to single over promotion to double
* * *
Add single precision support to log2 function
* * *
Trivial PROJECT file update
* * *
Cache optimized hermitian/transpose methods
* * *
Add tests for tranpose/hermitian and ChangeLog entry for new transpose code
author | David Bateman <dbateman@free.fr> |
---|---|
date | Sun, 27 Apr 2008 22:34:17 +0200 |
parents | a1dbe9d80eee |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/lo-utils.h Wed May 14 18:09:56 2008 +0200 +++ b/liboctave/lo-utils.h Sun Apr 27 22:34:17 2008 +0200 @@ -34,8 +34,11 @@ #include "syswait.h" extern OCTAVE_API octave_idx_type NINTbig (double x); +extern OCTAVE_API octave_idx_type NINTbig (float x); extern OCTAVE_API int NINT (double x); +extern OCTAVE_API int NINT (float x); extern OCTAVE_API double D_NINT (double x); +extern OCTAVE_API float F_NINT (float x); extern OCTAVE_API char *strsave (const char *); @@ -65,6 +68,12 @@ extern OCTAVE_API void octave_write_double (std::ostream& os, double dval); extern OCTAVE_API void octave_write_complex (std::ostream& os, const Complex& cval); +extern OCTAVE_API float octave_read_float (std::istream& is); +extern OCTAVE_API FloatComplex octave_read_float_complex (std::istream& is); + +extern OCTAVE_API void octave_write_float (std::ostream& os, float dval); +extern OCTAVE_API void octave_write_float_complex (std::ostream& os, const FloatComplex& cval); + #ifdef HAVE_LOADLIBRARY_API #include <windows.h> extern "C" OCTAVE_API void * octave_w32_library_search (HINSTANCE handle, const char *name);