23 #if !defined (octave_ov_complex_h)
24 #define octave_ov_complex_h 1
75 type_conv_info numeric_demotion_function (
void)
const;
80 bool resize_ok =
false);
85 error (
"attempted to use a complex scalar as an index\n"
86 " (forgot to initialize i or j?)");
107 double double_value (
bool =
false)
const;
109 float float_value (
bool =
false)
const;
111 double scalar_value (
bool frc_str_conv =
false)
const
112 {
return double_value (frc_str_conv); }
114 float float_scalar_value (
bool frc_str_conv =
false)
const
115 {
return float_value (frc_str_conv); }
117 Matrix matrix_value (
bool =
false)
const;
119 FloatMatrix float_matrix_value (
bool =
false)
const;
121 NDArray array_value (
bool =
false)
const;
133 Complex complex_value (
bool =
false)
const;
145 bool bool_value (
bool warn =
false)
const
171 bool save_ascii (std::ostream& os);
173 bool load_ascii (std::istream& is);
175 bool save_binary (std::ostream& os,
bool& save_as_floats);
177 bool load_binary (std::istream& is,
bool swap,
180 #if defined (HAVE_HDF5)
181 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
183 bool load_hdf5 (hid_t loc_id,
const char *name);
191 return os.
write (array_value (
true), block_size, output_type,
195 mxArray *as_mxArray (
void)
const;