Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
7788:45f5faba05a2 | 7789:82be108cc558 |
---|---|
37 #include "ov-uint64.h" | 37 #include "ov-uint64.h" |
38 #include "ov-range.h" | 38 #include "ov-range.h" |
39 #include "ov-bool.h" | 39 #include "ov-bool.h" |
40 #include "ov-bool-mat.h" | 40 #include "ov-bool-mat.h" |
41 #include "ov-scalar.h" | 41 #include "ov-scalar.h" |
42 #include "ov-float.h" | |
42 #include "ov-re-mat.h" | 43 #include "ov-re-mat.h" |
44 #include "ov-flt-re-mat.h" | |
43 #include "ov-str-mat.h" | 45 #include "ov-str-mat.h" |
44 #include "ov-typeinfo.h" | 46 #include "ov-typeinfo.h" |
45 #include "ops.h" | 47 #include "ops.h" |
46 | 48 |
47 // conversion ops | 49 // conversion ops |
63 | 65 |
64 DEFCONVFN (matrix_to_uint8, matrix, uint8) | 66 DEFCONVFN (matrix_to_uint8, matrix, uint8) |
65 DEFCONVFN (matrix_to_uint16, matrix, uint16) | 67 DEFCONVFN (matrix_to_uint16, matrix, uint16) |
66 DEFCONVFN (matrix_to_uint32, matrix, uint32) | 68 DEFCONVFN (matrix_to_uint32, matrix, uint32) |
67 DEFCONVFN (matrix_to_uint64, matrix, uint64) | 69 DEFCONVFN (matrix_to_uint64, matrix, uint64) |
70 | |
71 DEFCONVFN (float_scalar_to_int8, float_scalar, int8) | |
72 DEFCONVFN (float_scalar_to_int16, float_scalar, int16) | |
73 DEFCONVFN (float_scalar_to_int32, float_scalar, int32) | |
74 DEFCONVFN (float_scalar_to_int64, float_scalar, int64) | |
75 | |
76 DEFCONVFN (float_scalar_to_uint8, float_scalar, uint8) | |
77 DEFCONVFN (float_scalar_to_uint16, float_scalar, uint16) | |
78 DEFCONVFN (float_scalar_to_uint32, float_scalar, uint32) | |
79 DEFCONVFN (float_scalar_to_uint64, float_scalar, uint64) | |
80 | |
81 DEFCONVFN (float_matrix_to_int8, float_matrix, int8) | |
82 DEFCONVFN (float_matrix_to_int16, float_matrix, int16) | |
83 DEFCONVFN (float_matrix_to_int32, float_matrix, int32) | |
84 DEFCONVFN (float_matrix_to_int64, float_matrix, int64) | |
85 | |
86 DEFCONVFN (float_matrix_to_uint8, float_matrix, uint8) | |
87 DEFCONVFN (float_matrix_to_uint16, float_matrix, uint16) | |
88 DEFCONVFN (float_matrix_to_uint32, float_matrix, uint32) | |
89 DEFCONVFN (float_matrix_to_uint64, float_matrix, uint64) | |
68 | 90 |
69 DEFCONVFN (bool_to_int8, bool, int8) | 91 DEFCONVFN (bool_to_int8, bool, int8) |
70 DEFCONVFN (bool_to_int16, bool, int16) | 92 DEFCONVFN (bool_to_int16, bool, int16) |
71 DEFCONVFN (bool_to_int32, bool, int32) | 93 DEFCONVFN (bool_to_int32, bool, int32) |
72 DEFCONVFN (bool_to_int64, bool, int64) | 94 DEFCONVFN (bool_to_int64, bool, int64) |
182 void | 204 void |
183 install_int_conv_ops (void) | 205 install_int_conv_ops (void) |
184 { | 206 { |
185 INSTALL_CONVOPS (scalar) | 207 INSTALL_CONVOPS (scalar) |
186 INSTALL_CONVOPS (matrix) | 208 INSTALL_CONVOPS (matrix) |
209 INSTALL_CONVOPS (float_scalar) | |
210 INSTALL_CONVOPS (float_matrix) | |
187 INSTALL_CONVOPS (bool) | 211 INSTALL_CONVOPS (bool) |
188 INSTALL_CONVOPS (bool_matrix) | 212 INSTALL_CONVOPS (bool_matrix) |
189 INSTALL_CONVOPS (range) | 213 INSTALL_CONVOPS (range) |
190 INSTALL_CONVOPS (char_matrix_sq_str) | 214 INSTALL_CONVOPS (char_matrix_sq_str) |
191 INSTALL_CONVOPS (char_matrix_dq_str) | 215 INSTALL_CONVOPS (char_matrix_dq_str) |