26 #if ! defined (octave_ov_base_scalar_h)
27 #define octave_ov_base_scalar_h 1
29 #include "octave-config.h"
46 template <
typename ST>
76 subsref (
const std::string& type,
const std::list<octave_value_list>& idx);
79 const std::list<octave_value_list>& idx,
int)
80 {
return subsref (type, idx); }
83 subsasgn (
const std::string& type,
const std::list<octave_value_list>& idx,
94 int ndims ()
const {
return 2; }
136 {
return matrix_type (); }
144 OCTINTERP_API
bool is_true ()
const;
146 OCTINTERP_API
void print (std::ostream& os,
bool pr_as_read_syntax =
false);
149 print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
152 print_name_tag (std::ostream& os,
const std::string& name)
const;
154 OCTINTERP_API
void short_disp (std::ostream& os)
const;
158 OCTINTERP_API std::string
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
Vector representing the dimensions (size) of an Array.
octave_base_scalar(const ST &s)
Array< octave_idx_type > sort_rows_idx(sortmode) const
octave_idx_type nnz() const
octave_base_scalar(const octave_base_scalar &s)
std::size_t byte_size() const
~octave_base_scalar()=default
MatrixType matrix_type(const MatrixType &) const
bool is_scalar_type() const
MatrixType matrix_type() const
octave_value full_value() const
const void * mex_get_data() const
sortmode is_sorted_rows(sortmode mode=UNSORTED) const
octave_value any(int=0) const
octave_value sort(octave_idx_type, sortmode) const
bool is_maybe_function() const
octave_value squeeze() const
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type, sortmode) const
const ST & scalar_ref() const
sortmode issorted(sortmode mode=UNSORTED) const
octave_idx_type numel() const
octave_value all(int=0) const
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
virtual octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
bool is_true(const std::string &s)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))