00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifdef HAVE_CONFIG_H
00024 #include <config.h>
00025 #endif
00026
00027 #include "gripes.h"
00028 #include "oct-obj.h"
00029 #include "ov.h"
00030 #include "ov-int8.h"
00031 #include "ov-int16.h"
00032 #include "ov-int32.h"
00033 #include "ov-int64.h"
00034 #include "ov-uint8.h"
00035 #include "ov-uint16.h"
00036 #include "ov-uint32.h"
00037 #include "ov-uint64.h"
00038 #include "ov-bool.h"
00039 #include "ov-bool-mat.h"
00040 #include "ov-re-sparse.h"
00041 #include "ov-bool-sparse.h"
00042 #include "ov-range.h"
00043 #include "ov-scalar.h"
00044 #include "ov-re-mat.h"
00045 #include "ov-str-mat.h"
00046 #include "ov-typeinfo.h"
00047 #include "ops.h"
00048
00049
00050
00051 DEFDBLCONVFN (int8_matrix_to_double_matrix, int8_matrix, int8_array)
00052 DEFDBLCONVFN (int16_matrix_to_double_matrix, int16_matrix, int16_array)
00053 DEFDBLCONVFN (int32_matrix_to_double_matrix, int32_matrix, int32_array)
00054 DEFDBLCONVFN (int64_matrix_to_double_matrix, int64_matrix, int64_array)
00055
00056 DEFDBLCONVFN (uint8_matrix_to_double_matrix, uint8_matrix, uint8_array)
00057 DEFDBLCONVFN (uint16_matrix_to_double_matrix, uint16_matrix, uint16_array)
00058 DEFDBLCONVFN (uint32_matrix_to_double_matrix, uint32_matrix, uint32_array)
00059 DEFDBLCONVFN (uint64_matrix_to_double_matrix, uint64_matrix, uint64_array)
00060
00061 DEFDBLCONVFN (int8_scalar_to_double_matrix, int8_scalar, int8_array)
00062 DEFDBLCONVFN (int16_scalar_to_double_matrix, int16_scalar, int16_array)
00063 DEFDBLCONVFN (int32_scalar_to_double_matrix, int32_scalar, int32_array)
00064 DEFDBLCONVFN (int64_scalar_to_double_matrix, int64_scalar, int64_array)
00065
00066 DEFDBLCONVFN (uint8_scalar_to_double_matrix, uint8_scalar, uint8_array)
00067 DEFDBLCONVFN (uint16_scalar_to_double_matrix, uint16_scalar, uint16_array)
00068 DEFDBLCONVFN (uint32_scalar_to_double_matrix, uint32_scalar, uint32_array)
00069 DEFDBLCONVFN (uint64_scalar_to_double_matrix, uint64_scalar, uint64_array)
00070
00071 DEFDBLCONVFN (bool_matrix_to_double_matrix, bool_matrix, bool_array)
00072 DEFDBLCONVFN (bool_scalar_to_double_matrix, bool, bool_array)
00073
00074 DEFDBLCONVFN (sparse_matrix_to_double_matrix, sparse_matrix, array)
00075 DEFDBLCONVFN (sparse_bool_matrix_to_double_matrix, sparse_bool_matrix, array)
00076
00077 DEFDBLCONVFN (range_to_double_matrix, range, array)
00078
00079 DEFSTRDBLCONVFN(char_matrix_str_to_double_matrix, char_matrix_str)
00080 DEFSTRDBLCONVFN(char_matrix_sq_str_to_double_matrix, char_matrix_sq_str)
00081
00082 DEFDBLCONVFN (double_scalar_to_double_matrix, scalar, array)
00083
00084 void
00085 install_double_conv_ops (void)
00086 {
00087 INSTALL_CONVOP (octave_int8_matrix, octave_matrix, int8_matrix_to_double_matrix);
00088 INSTALL_CONVOP (octave_int16_matrix, octave_matrix, int16_matrix_to_double_matrix);
00089 INSTALL_CONVOP (octave_int32_matrix, octave_matrix, int32_matrix_to_double_matrix);
00090 INSTALL_CONVOP (octave_int64_matrix, octave_matrix, int64_matrix_to_double_matrix);
00091
00092 INSTALL_CONVOP (octave_uint8_matrix, octave_matrix, uint8_matrix_to_double_matrix);
00093 INSTALL_CONVOP (octave_uint16_matrix, octave_matrix, uint16_matrix_to_double_matrix);
00094 INSTALL_CONVOP (octave_uint32_matrix, octave_matrix, uint32_matrix_to_double_matrix);
00095 INSTALL_CONVOP (octave_uint64_matrix, octave_matrix, uint64_matrix_to_double_matrix);
00096
00097 INSTALL_CONVOP (octave_int8_scalar, octave_matrix, int8_scalar_to_double_matrix);
00098 INSTALL_CONVOP (octave_int16_scalar, octave_matrix, int16_scalar_to_double_matrix);
00099 INSTALL_CONVOP (octave_int32_scalar, octave_matrix, int32_scalar_to_double_matrix);
00100 INSTALL_CONVOP (octave_int64_scalar, octave_matrix, int64_scalar_to_double_matrix);
00101
00102 INSTALL_CONVOP (octave_uint8_scalar, octave_matrix, uint8_scalar_to_double_matrix);
00103 INSTALL_CONVOP (octave_uint16_scalar, octave_matrix, uint16_scalar_to_double_matrix);
00104 INSTALL_CONVOP (octave_uint32_scalar, octave_matrix, uint32_scalar_to_double_matrix);
00105 INSTALL_CONVOP (octave_uint64_scalar, octave_matrix, uint64_scalar_to_double_matrix);
00106
00107 INSTALL_CONVOP (octave_bool_matrix, octave_matrix, bool_matrix_to_double_matrix);
00108 INSTALL_CONVOP (octave_bool, octave_matrix, bool_scalar_to_double_matrix);
00109
00110 INSTALL_CONVOP (octave_sparse_matrix, octave_matrix, sparse_matrix_to_double_matrix);
00111 INSTALL_CONVOP (octave_sparse_bool_matrix, octave_matrix, sparse_bool_matrix_to_double_matrix);
00112
00113 INSTALL_CONVOP (octave_range, octave_matrix, range_to_double_matrix);
00114
00115 INSTALL_CONVOP (octave_char_matrix_str, octave_matrix, char_matrix_str_to_double_matrix);
00116 INSTALL_CONVOP (octave_char_matrix_sq_str, octave_matrix, char_matrix_sq_str_to_double_matrix);
00117
00118 INSTALL_CONVOP (octave_scalar, octave_matrix, double_scalar_to_double_matrix);
00119 }