26 #if defined (HAVE_CONFIG_H)
46 error (
"transpose not defined for N-D objects");
49 a.is_sq_string () ?
'\'' :
'"');
54 #define DEFCHARNDBINOP_FN(name, op, t1, t2, e1, e2, f) \
56 CONCAT2(oct_binop_, name) (const octave_base_value& a1, \
57 const octave_base_value& a2) \
59 dim_vector a1_dims = a1.dims (); \
60 dim_vector a2_dims = a2.dims (); \
62 bool a1_is_scalar = a1_dims.all_ones (); \
63 bool a2_is_scalar = a2_dims.all_ones (); \
65 const octave_ ## t1& v1 = dynamic_cast<const octave_ ## t1&> (a1); \
66 const octave_ ## t2& v2 = dynamic_cast<const octave_ ## t2&> (a2); \
71 return octave_value ((v1.e1 ## _value ())(0) \
72 op (v2.e2 ## _value ())(0)); \
74 return octave_value (f ((v1.e1 ## _value ())(0), \
75 v2.e2 ## _value ())); \
80 return octave_value (f (v1.e1 ## _value (), \
81 (v2.e2 ## _value ())(0))); \
83 return octave_value (f (v1.e1 ## _value (), \
84 v2.e2 ## _value ())); \
ComplexNDArray concat(NDArray &ra, ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
boolMatrix mx_el_le(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_ne(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_gt(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_eq(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_lt(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_ge(const boolMatrix &m1, const boolMatrix &m2)
charMatrix transpose(void) const
void assign(const octave_value_list &idx, const MT &rhs)
charMatrix char_matrix_value(bool=false) const
charNDArray char_array_value(bool=false) const
void error(const char *fmt,...)
const octave_base_value & a2
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
const octave_char_matrix & v2
#define DEFCHARNDBINOP_FN(name, op, t1, t2, e1, e2, f)
void install_str_str_ops(octave::type_info &ti)
#define DEFNULLASSIGNOP_FN(name, t, f)
#define DEFASSIGNOP(name, t1, t2)
#define INSTALL_BINOP_TI(ti, op, t1, t2, f)
#define INSTALL_CATOP_TI(ti, t1, t2, f)
#define INSTALL_UNOP_TI(ti, op, t, f)
#define INSTALL_ASSIGNOP_TI(ti, op, t1, t2, f)
#define DEFNDCHARCATOP_FN(name, t1, t2, f)
octave_value op_ne(const octave_value &a1, const octave_value &a2)
octave_value op_gt(const octave_value &a1, const octave_value &a2)
octave_value op_transpose(const octave_value &a)
octave_value op_hermitian(const octave_value &a)
octave_value op_le(const octave_value &a1, const octave_value &a2)
octave_value op_eq(const octave_value &a1, const octave_value &a2)
octave_value op_ge(const octave_value &a1, const octave_value &a2)
octave_value op_lt(const octave_value &a1, const octave_value &a2)
static void transpose(octave_idx_type N, const octave_idx_type *ridx, const octave_idx_type *cidx, octave_idx_type *ridx2, octave_idx_type *cidx2)