38 template <
typename ST>
41 const std::list<octave_value_list>& idx)
48 retval = do_index_op (idx.front ());
55 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
66 template <
typename ST>
69 const std::list<octave_value_list>& idx,
78 if (type.length () != 1)
81 error (
"in indexed assignment of %s, last rhs index must be ()",
85 retval = numeric_assign (type, idx, rhs);
93 error (
"%s cannot be indexed with %c", nm.c_str (), type[0]);
104 template <
typename ST>
112 template <
typename ST>
119 template <
typename ST>
126 template <
typename ST>
133 template <
typename ST>
140 template <
typename ST>
150 template <
typename ST>
154 print_raw (os, pr_as_read_syntax);
158 template <
typename ST>
161 bool pr_as_read_syntax)
const
167 template <
typename ST>
177 template <
typename ST>
181 std::ostringstream buf;
184 size_t pos = tmp.find_first_not_of (
" ");
185 if (pos != std::string::npos)
186 os << tmp.substr (pos);
187 else if (! tmp.empty ())
191 template <
typename ST>
198 template <
typename ST>
207 *(
reinterpret_cast<ST *
>(where)) =
scalar;
void short_disp(std::ostream &os) const
nd group nd example oindent but is performed more efficiently If only and it is a scalar
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 err_nan_to_logical_conversion(void)
void print(std::ostream &os, bool pr_as_read_syntax=false)
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
octave_value subsasgn(const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
nd deftypefn *octave_map m
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
dim_vector dims(void) const
Vector representing the dimensions (size) of an Array.
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
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())? '\'': '"'))