Mercurial > hg > octave-nkf
diff src/OPERATORS/op-int-conv.cc @ 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 | cd90e2842080 |
line wrap: on
line diff
--- a/src/OPERATORS/op-int-conv.cc +++ b/src/OPERATORS/op-int-conv.cc @@ -39,7 +39,9 @@ #include "ov-bool.h" #include "ov-bool-mat.h" #include "ov-scalar.h" +#include "ov-float.h" #include "ov-re-mat.h" +#include "ov-flt-re-mat.h" #include "ov-str-mat.h" #include "ov-typeinfo.h" #include "ops.h" @@ -66,6 +68,26 @@ DEFCONVFN (matrix_to_uint32, matrix, uint32) DEFCONVFN (matrix_to_uint64, matrix, uint64) +DEFCONVFN (float_scalar_to_int8, float_scalar, int8) +DEFCONVFN (float_scalar_to_int16, float_scalar, int16) +DEFCONVFN (float_scalar_to_int32, float_scalar, int32) +DEFCONVFN (float_scalar_to_int64, float_scalar, int64) + +DEFCONVFN (float_scalar_to_uint8, float_scalar, uint8) +DEFCONVFN (float_scalar_to_uint16, float_scalar, uint16) +DEFCONVFN (float_scalar_to_uint32, float_scalar, uint32) +DEFCONVFN (float_scalar_to_uint64, float_scalar, uint64) + +DEFCONVFN (float_matrix_to_int8, float_matrix, int8) +DEFCONVFN (float_matrix_to_int16, float_matrix, int16) +DEFCONVFN (float_matrix_to_int32, float_matrix, int32) +DEFCONVFN (float_matrix_to_int64, float_matrix, int64) + +DEFCONVFN (float_matrix_to_uint8, float_matrix, uint8) +DEFCONVFN (float_matrix_to_uint16, float_matrix, uint16) +DEFCONVFN (float_matrix_to_uint32, float_matrix, uint32) +DEFCONVFN (float_matrix_to_uint64, float_matrix, uint64) + DEFCONVFN (bool_to_int8, bool, int8) DEFCONVFN (bool_to_int16, bool, int16) DEFCONVFN (bool_to_int32, bool, int32) @@ -184,6 +206,8 @@ { INSTALL_CONVOPS (scalar) INSTALL_CONVOPS (matrix) + INSTALL_CONVOPS (float_scalar) + INSTALL_CONVOPS (float_matrix) INSTALL_CONVOPS (bool) INSTALL_CONVOPS (bool_matrix) INSTALL_CONVOPS (range)