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 ()",
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>
203 std::ostringstream buf;
208 template <
typename ST>
215 template <
typename ST>
224 *(
reinterpret_cast<ST *
>(where)) =
scalar;
float_display_format get_edit_display_format(void) 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)
void error(const char *fmt,...)
void err_nan_to_logical_conversion(void)
octave_value reshape(const dim_vector &new_dims) const
void print(std::ostream &os, bool pr_as_read_syntax=false)
void octave_print_internal(std::ostream &os, const float_display_format &fmt, bool d, bool pr_as_read_syntax)
nd deftypefn *std::string name
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)
bool print_name_tag(std::ostream &os, const std::string &name) const
#define panic_impossible()
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
float_display_format make_format(const double &d)
bool fast_elem_insert_self(void *where, builtin_type_t btyp) const
dim_vector dims(void) const
void short_disp(std::ostream &os) const
std::string edit_display(const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
octave_value fast_elem_extract(octave_idx_type n) 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 diag(octave_idx_type k=0) const
octave_value permute(const Array< int > &, bool=false) const
octave_value next_subsref(const std::string &type, const std::list< octave_value_list > &idx, size_t skip=1)