26#if ! defined (octave_ov_str_mat_h)
27#define octave_ov_str_mat_h 1
29#include "octave-config.h"
95 bool resize_ok =
false)
96 {
return do_index_op_internal (idx, resize_ok); }
146 {
return octave_value (m_matrix.sort (sidx, dim, mode)); }
150 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
161 bool save_binary (std::ostream& os,
bool save_as_floats);
164 octave::mach_info::float_format fmt);
170 int write (octave::stream& os,
int block_size,
172 octave::mach_info::float_format flt_fmt)
const
173 {
return os.write (m_matrix, block_size, output_type, skip, flt_fmt); }
178 bool resize_ok,
char type =
'"');
255 bool resize_ok =
false)
N Dimensional Array with copy-on-write semantics.
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
Array< T, Alloc > permute(const Array< octave_idx_type > &vec, bool inv=false) const
Size of the specified dimension.
Array< T, Alloc > sort(int dim=0, sortmode mode=ASCENDING) const
Size of the specified dimension.
Array< T, Alloc > reshape(octave_idx_type nr, octave_idx_type nc) const
Size of the specified dimension.
charNDArray diag(octave_idx_type k=0) const
charNDArray squeeze() const
Vector representing the dimensions (size) of an Array.
octave_value resize(const dim_vector &dv, bool fill=false) const
void short_disp(std::ostream &os) const
std::string edit_display(const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
virtual bool load_hdf5(octave_hdf5_id loc_id, const char *name)
virtual bool save_ascii(std::ostream &os)
virtual octave_value diag(octave_idx_type k=0) const
virtual Array< std::string > cellstr_value() const
virtual bool save_binary(std::ostream &os, bool save_as_floats)
virtual type_conv_info numeric_conversion_function() const
virtual bool load_ascii(std::istream &is)
virtual bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
virtual bool save_hdf5(octave_hdf5_id loc_id, const char *name, bool save_as_floats)
virtual std::string string_value(bool force=false) const
virtual string_vector string_vector_value(bool pad=false) const
friend class octave_value
bool is_sq_string() 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_base_value * clone() const
octave_char_matrix_sq_str(const char *s)
octave_base_value * empty_clone() const
octave_char_matrix_sq_str(const octave_char_matrix_str &chm)
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_base_value * clone() const
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_base_value * empty_clone() const
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_char_matrix_str(const char *s)
octave_value sort(octave_idx_type dim=0, sortmode mode=ASCENDING) const
octave_value do_index_op_internal(const octave_value_list &idx, bool resize_ok, char type='"')
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_char_matrix_str(const charNDArray &chm)
ComplexMatrix complex_matrix_value(bool=false) const
Complex complex_value(bool=false) const
ComplexNDArray complex_array_value(bool=false) const
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
Matrix matrix_value(bool=false) const
NDArray array_value(bool=false) const
double double_value(bool=false) const
std::complex< double > Complex
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA_API(API)
octave_char_matrix_str octave_char_matrix_dq_str