42 template <
typename ST>
45 const std::list<octave_value_list>& idx)
52 retval = do_index_op (idx.front ());
58 std::string nm = type_name ();
59 error (
"%s cannot be indexed with %c", nm.c_str (),
type[0]);
70 template <
typename ST>
73 const std::list<octave_value_list>& idx,
82 if (
type.length () != 1)
84 std::string nm = type_name ();
85 error (
"in indexed assignment of %s, last rhs index must be ()",
96 std::string nm = type_name ();
97 error (
"%s cannot be indexed with %c", nm.c_str (),
type[0]);
108 template <
typename ST>
116 template <
typename ST>
123 template <
typename ST>
130 template <
typename ST>
137 template <
typename ST>
144 template <
typename ST>
154 template <
typename ST>
158 print_raw (os, pr_as_read_syntax);
162 template <
typename ST>
165 bool pr_as_read_syntax)
const
171 template <
typename ST>
174 const std::string&
name)
const
181 template <
typename ST>
185 std::ostringstream buf;
187 std::string tmp = buf.str ();
188 size_t pos = tmp.find_first_not_of (
' ');
189 if (pos != std::string::npos)
190 os << tmp.substr (pos);
191 else if (! tmp.empty ())
195 template <
typename ST>
202 template <
typename ST>
207 std::ostringstream buf;
212 template <
typename ST>
219 template <
typename ST>
228 *(
reinterpret_cast<ST *
>(where)) =
scalar;
Array< T > reshape(octave_idx_type nr, octave_idx_type nc) const
Size of the specified dimension.
Array< T > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
Array< T > permute(const Array< octave_idx_type > &vec, bool inv=false) const
Size of the specified dimension.
Vector representing the dimensions (size) of an Array.
virtual octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
octave_value reshape(const dim_vector &new_dims) const
octave_value permute(const Array< int > &, bool=false) const
octave_value fast_elem_extract(octave_idx_type n) const
dim_vector dims(void) const
octave_value subsasgn(const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
octave_value diag(octave_idx_type k=0) const
float_display_format get_edit_display_format(void) const
void print_raw(std::ostream &os, bool pr_as_read_syntax=false) const
std::string edit_display(const float_display_format &fmt, octave_idx_type i, octave_idx_type j) const
bool fast_elem_insert_self(void *where, builtin_type_t btyp) const
void print(std::ostream &os, bool pr_as_read_syntax=false)
void short_disp(std::ostream &os) const
bool print_name_tag(std::ostream &os, const std::string &name) const
void error(const char *fmt,...)
#define panic_impossible()
void err_nan_to_logical_conversion(void)
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)
octave_value::octave_value(const Array< char > &chm, char type) return retval
void octave_print_internal(std::ostream &os, const float_display_format &fmt, bool d, bool pr_as_read_syntax)
float_display_format make_format(const double &d)