24 #if !defined (octave_ov_re_mat_h)
25 #define octave_ov_re_mat_h 1
84 bool zero_based =
false,
bool cache_index =
false)
88 if (zero_based && cache_index)
95 set_idx_cache (cache);
103 type_conv_info numeric_demotion_function (
void)
const;
108 {
return idx_cache ? *idx_cache : set_idx_cache (
idx_vector (matrix)); }
144 double double_value (
bool =
false)
const;
146 float float_value (
bool =
false)
const;
148 double scalar_value (
bool frc_str_conv =
false)
const
149 {
return double_value (frc_str_conv); }
151 Matrix matrix_value (
bool =
false)
const;
153 FloatMatrix float_matrix_value (
bool =
false)
const;
155 Complex complex_value (
bool =
false)
const;
167 boolNDArray bool_array_value (
bool warn =
false)
const;
204 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
206 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
208 bool save_ascii (std::ostream& os);
210 bool load_ascii (std::istream& is);
212 bool save_binary (std::ostream& os,
bool& save_as_floats);
214 bool load_binary (std::istream& is,
bool swap,
217 #if defined (HAVE_HDF5)
218 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
220 bool load_hdf5 (hid_t loc_id,
const char *name);
226 {
return os.
write (matrix, block_size, output_type, skip, flt_fmt); }
232 mxArray *as_mxArray (
void)
const;