24 #if !defined (octave_ov_cx_mat_h)
25 #define octave_ov_cx_mat_h 1
90 type_conv_info numeric_demotion_function (
void)
const;
104 double double_value (
bool =
false)
const;
106 float float_value (
bool =
false)
const;
108 double scalar_value (
bool frc_str_conv =
false)
const
109 {
return double_value (frc_str_conv); }
111 float float_scalar_value (
bool frc_str_conv =
false)
const
112 {
return float_value (frc_str_conv); }
114 Matrix matrix_value (
bool =
false)
const;
116 FloatMatrix float_matrix_value (
bool =
false)
const;
118 Complex complex_value (
bool =
false)
const;
130 boolNDArray bool_array_value (
bool warn =
false)
const;
132 charNDArray char_array_value (
bool frc_str_conv =
false)
const;
148 bool save_ascii (std::ostream& os);
150 bool load_ascii (std::istream& is);
152 bool save_binary (std::ostream& os,
bool& save_as_floats);
154 bool load_binary (std::istream& is,
bool swap,
157 #if defined (HAVE_HDF5)
158 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
160 bool load_hdf5 (hid_t loc_id,
const char *name);
168 return os.
write (matrix_value (
true), block_size, output_type,
172 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
174 mxArray *as_mxArray (
void)
const;