24 #if !defined (octave_ov_flt_re_mat_h)
25 #define octave_ov_flt_re_mat_h 1
93 {
return idx_cache ? *idx_cache : set_idx_cache (
idx_vector (matrix)); }
129 double double_value (
bool =
false)
const;
131 float float_value (
bool =
false)
const;
133 double scalar_value (
bool frc_str_conv =
false)
const
134 {
return double_value (frc_str_conv); }
136 float float_scalar_value (
bool frc_str_conv =
false)
const
137 {
return float_value (frc_str_conv); }
139 Matrix matrix_value (
bool =
false)
const;
141 FloatMatrix float_matrix_value (
bool =
false)
const;
143 Complex complex_value (
bool =
false)
const;
155 boolNDArray bool_array_value (
bool warn =
false)
const;
159 NDArray array_value (
bool =
false)
const;
178 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
180 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
182 bool save_ascii (std::ostream& os);
184 bool load_ascii (std::istream& is);
186 bool save_binary (std::ostream& os,
bool& save_as_floats);
188 bool load_binary (std::istream& is,
bool swap,
191 #if defined (HAVE_HDF5)
192 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
194 bool load_hdf5 (hid_t loc_id,
const char *name);
200 {
return os.
write (matrix, block_size, output_type, skip, flt_fmt); }
206 mxArray *as_mxArray (
void)
const;