23 #if ! defined (octave_ov_base_scalar_h) 24 #define octave_ov_base_scalar_h 1 26 #include "octave-config.h" 43 template <
typename ST>
65 const std::list<octave_value_list>& idx);
68 const std::list<octave_value_list>& idx,
int)
72 const std::list<octave_value_list>& idx,
83 int ndims (
void)
const {
return 2; }
91 size_t byte_size (
void)
const {
return sizeof (ST); }
125 {
return matrix_type (); }
133 void print (std::ostream&
os,
bool pr_as_read_syntax =
false);
135 void print_raw (std::ostream&
os,
bool pr_as_read_syntax =
false)
const;
139 void short_disp (std::ostream&
os)
const;
156 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;
octave_value squeeze(void) const
nd group nd example oindent but is performed more efficiently If only and it is a scalar
bool is_scalar_type(void) const
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
idx subsref(val, idx) esult
octave_idx_type numel(void) const
sortmode issorted(sortmode mode=UNSORTED) const
octave_value_list subsref(const std::string &type, const std::list< octave_value_list > &idx, int)
bool isnumeric(void) const
sortmode is_sorted_rows(sortmode mode=UNSORTED) const
void * mex_get_data(void) const
octave_idx_type nnz(void) const
size_t byte_size(void) const
octave_value full_value(void) const
nd deftypefn *std::string name
octave_base_scalar(const octave_base_scalar &s)
const ST & scalar_ref(void) const
void resize(const dim_vector &dv, const T &rfv)
Resizing (with fill).
bool is_true(const std::string &s)
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
bool is_constant(void) const
octave_value all(int=0) const
octave_base_scalar(const ST &s)
Array< octave_idx_type > sort_rows_idx(sortmode) const
bool is_defined(void) const
idx subsasgn(val, idx, 0) esult
MatrixType matrix_type(void) const
MatrixType matrix_type(const MatrixType &) const
octave_value any(int=0) const
octave_value sort(Array< octave_idx_type > &sidx, octave_idx_type, sortmode) const
Vector representing the dimensions (size) of an Array.
octave_value sort(octave_idx_type, sortmode) const
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
static float_display_format get_edit_display_format(const octave_value &val)