23 #if !defined (octave_ov_perm_h)
24 #define octave_ov_perm_h 1
47 type_conv_info numeric_conversion_function (
void)
const;
51 size_t byte_size (
void)
const {
return matrix.byte_size (); }
58 const std::list<octave_value_list>& idx);
61 const std::list<octave_value_list>& idx,
int)
65 bool resize_ok =
false);
72 {
return to_dense ().
reshape (new_dims); }
75 {
return to_dense ().
permute (vec, inv); }
78 {
return to_dense ().
resize (dv, fill); }
88 {
return to_dense () .
diag (k); }
91 {
return to_dense ().
sort (dim, mode); }
94 {
return to_dense ().
sort (sidx, dim, mode); }
127 double double_value (
bool =
false)
const;
129 float float_value (
bool =
false)
const;
131 double scalar_value (
bool frc_str_conv =
false)
const
132 {
return double_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;
193 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
195 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
197 bool save_ascii (std::ostream& os);
199 bool load_ascii (std::istream& is);
201 bool save_binary (std::ostream& os,
bool& save_as_floats);
203 bool load_binary (std::istream& is,
bool swap,
210 mxArray *as_mxArray (
void)
const;
212 bool print_as_scalar (
void)
const;
214 void print (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
216 void print_info (std::ostream& os,
const std::string& prefix)
const;
219 {
return to_dense ().
map (umap); }