24 #if !defined (octave_ov_bool_mat_h)
25 #define octave_ov_bool_mat_h 1
73 set_idx_cache (cache);
87 type_conv_info numeric_conversion_function (
void)
const;
92 {
return idx_cache ? *idx_cache : set_idx_cache (
idx_vector (matrix)); }
128 double double_value (
bool =
false)
const;
130 float float_value (
bool =
false)
const;
132 double scalar_value (
bool frc_str_conv =
false)
const
133 {
return double_value (frc_str_conv); }
136 {
return Matrix (matrix.matrix_value ()); }
147 Complex complex_value (
bool =
false)
const;
164 char_array_value (
bool =
false)
const
171 retval(i) =
static_cast<char>(matrix(i));
177 {
return matrix.matrix_value (); }
191 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
194 void invert (
void) { matrix_ref ().invert (); }
196 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
198 bool save_ascii (std::ostream& os);
200 bool load_ascii (std::istream& is);
202 bool save_binary (std::ostream& os,
bool& save_as_floats);
204 bool load_binary (std::istream& is,
bool swap,
207 #if defined (HAVE_HDF5)
208 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
210 bool load_hdf5 (hid_t loc_id,
const char *name);
216 {
return os.
write (matrix, block_size, output_type, skip, flt_fmt); }
222 mxArray *as_mxArray (
void)
const;