39 const std::list<octave_value_list>& idx)
46 retval = do_index_op (idx.front ());
52 std::string nm = type_name ();
53 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
67 const std::list<octave_value_list>& idx,
76 if (type.length () == 1)
77 retval = numeric_assign (type, idx, rhs);
80 std::string nm = type_name ();
81 error (
"in indexed assignment of %s, last rhs index must be ()",
90 std::string nm = type_name ();
91 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
139 retval = (
scalar != ST ());
148 print_raw (os, pr_as_read_syntax);
155 bool pr_as_read_syntax)
const
164 const std::string& name)
const
175 std::ostringstream buf;
177 std::string tmp = buf.str ();
178 size_t pos = tmp.find_first_not_of (
" ");
179 if (pos != std::string::npos)
180 os << tmp.substr (pos);
181 else if (! tmp.empty ())
201 *(
reinterpret_cast<ST *
>(where)) =
scalar;
void short_disp(std::ostream &os) const
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
octave_value diag(octave_idx_type k=0) const
octave_value permute(const Array< int > &, bool=false) const
void error(const char *fmt,...)
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
void print(std::ostream &os, bool pr_as_read_syntax=false)
octave_value subsasgn(const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
void gripe_nan_to_logical_conversion(void)
octave_value fast_elem_extract(octave_idx_type n) const
#define panic_impossible()
octave_value reshape(const dim_vector &new_dims) const
void octave_print_internal(std::ostream &, char, bool)
bool fast_elem_insert_self(void *where, builtin_type_t btyp) const
bool print_name_tag(std::ostream &os, const std::string &name) const
octave_value next_subsref(const std::string &type, const std::list< octave_value_list > &idx, size_t skip=1)
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)