26 #if ! defined (octave_ov_str_mat_h)
27 #define octave_ov_str_mat_h 1
29 #include "octave-config.h"
94 type_conv_info numeric_conversion_function ()
const;
97 bool resize_ok =
false)
98 {
return do_index_op_internal (idx, resize_ok); }
123 double double_value (
bool =
false)
const;
125 Matrix matrix_value (
bool =
false)
const;
129 Complex complex_value (
bool =
false)
const;
137 std::string string_value (
bool force =
false)
const;
148 {
return octave_value (m_matrix.sort (sidx, dim, mode)); }
152 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
154 void short_disp (std::ostream& os)
const;
159 bool save_ascii (std::ostream& os);
161 bool load_ascii (std::istream& is);
163 bool save_binary (std::ostream& os,
bool save_as_floats);
165 bool load_binary (std::istream& is,
bool swap,
168 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
172 int write (octave::stream& os,
int block_size,
175 {
return os.write (m_matrix, block_size, output_type, skip, flt_fmt); }
180 bool resize_ok,
char type =
'"');
258 bool resize_ok =
false)
259 {
return do_index_op_internal (idx, resize_ok,
'\''); }
262 {
return octave_value (m_matrix.sort (dim, mode),
'\''); }
266 {
return octave_value (m_matrix.sort (sidx, dim, mode),
'\''); }
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
Vector representing the dimensions (size) of an Array.
octave_value diag(octave_idx_type k=0) const
bool is_sq_string() const
octave_base_value * empty_clone() const
~octave_char_matrix_sq_str()=default
octave_char_matrix_sq_str(const octave_char_matrix_sq_str &chms)
octave_char_matrix_sq_str()
octave_char_matrix_sq_str(const char *s)
octave_char_matrix_sq_str(const octave_char_matrix_str &chm)
octave_base_value * clone() const
octave_value resize(const dim_vector &dv, bool=false) const
octave_char_matrix_sq_str(char c)
octave_value squeeze() const
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_char_matrix_sq_str(const std::string &s)
octave_char_matrix_sq_str(const charMatrix &chm)
octave_char_matrix_sq_str(const Array< char > &chm)
octave_char_matrix_sq_str(const string_vector &s)
octave_value reshape(const dim_vector &new_dims) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_value diag(octave_idx_type k=0) const
octave_value permute(const Array< int > &vec, bool inv=false) const
octave_char_matrix_sq_str(const charNDArray &chm)
~octave_char_matrix_str()=default
octave_value permute(const Array< int > &vec, bool inv=false) const
octave_value squeeze() const
octave_char_matrix_str(const Array< char > &chm)
octave_char_matrix_str(char c)
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_char_matrix_str(const string_vector &s)
octave_value reshape(const dim_vector &new_dims) const
int write(octave::stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const
octave_char_matrix_str(const std::string &s)
octave_value diag(octave_idx_type k=0) const
bool print_as_scalar() const
std::string xstring_value() const
octave_char_matrix_str(const octave_char_matrix &chm)
octave_char_matrix_str(const charMatrix &chm)
octave_char_matrix_str(const octave_char_matrix_str &chms)
octave_base_value * empty_clone() const
octave_char_matrix_str(const char *s)
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_base_value * clone() const
octave_char_matrix_str(const charNDArray &chm)
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
Array< octave_value > array_value() const
std::complex< double > Complex
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
octave_char_matrix_str octave_char_matrix_dq_str