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>
73 const std::list<octave_value_list>& idx);
76 const std::list<octave_value_list>& idx,
int)
77 {
return subsref (
type, idx); }
80 const std::list<octave_value_list>& idx,
91 int ndims (
void)
const {
return 2; }
99 size_t byte_size (
void)
const {
return sizeof (ST); }
133 {
return matrix_type (); }
141 void print (std::ostream& os,
bool pr_as_read_syntax =
false);
143 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
145 bool print_name_tag (std::ostream& os,
const std::string&
name)
const;
147 void short_disp (std::ostream& os)
const;
164 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;
template class OCTAVE_API Array< octave_idx_type >
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
Vector representing the dimensions (size) of an Array.
bool is_scalar_type(void) const
octave_base_scalar(const ST &s)
octave_idx_type nnz(void) const
bool isnumeric(void) const
Array< octave_idx_type > sort_rows_idx(sortmode) const
size_t byte_size(void) const
const ST & scalar_ref(void) const
octave_base_scalar(const octave_base_scalar &s)
bool is_constant(void) const
octave_value squeeze(void) const
MatrixType matrix_type(const MatrixType &) const
sortmode is_sorted_rows(sortmode mode=UNSORTED) const
void * mex_get_data(void) const
~octave_base_scalar(void)=default
octave_value any(int=0) const
octave_value sort(octave_idx_type, sortmode) const
octave_idx_type numel(void) const
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type, sortmode) const
sortmode issorted(sortmode mode=UNSORTED) const
MatrixType matrix_type(void) const
octave_value full_value(void) const
bool is_defined(void) 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)
static float_display_format get_edit_display_format(const octave_value &val)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
static bool scalar(const dim_vector &dims)