26 #if defined (HAVE_CONFIG_H)
42 DEFUNOP (transpose, char_matrix_str)
47 error (
"transpose not defined for N-D objects");
49 return octave_value (v.char_matrix_value ().transpose (),
50 a.is_sq_string () ?
'\'' :
'"');
55 #define DEFCHARNDBINOP_FN(name, op, t1, t2, e1, e2, f) \
57 CONCAT2(oct_binop_, name) (const octave_base_value& a1, \
58 const octave_base_value& a2) \
60 dim_vector a1_dims = a1.dims (); \
61 dim_vector a2_dims = a2.dims (); \
63 bool a1_is_scalar = a1_dims.all_ones (); \
64 bool a2_is_scalar = a2_dims.all_ones (); \
66 OCTAVE_CAST_BASE_VALUE (const octave_ ## t1&, v1, a1); \
67 OCTAVE_CAST_BASE_VALUE (const octave_ ## t2&, v2, a2); \
72 return octave_value ((v1.e1 ## _value ())(0) \
73 op (v2.e2 ## _value ())(0)); \
75 return octave_value (f ((v1.e1 ## _value ())(0), \
76 v2.e2 ## _value ())); \
81 return octave_value (f (v1.e1 ## _value (), \
82 (v2.e2 ## _value ())(0))); \
84 return octave_value (f (v1.e1 ## _value (), \
85 v2.e2 ## _value ())); \
102 DEFASSIGNOP (assign, char_matrix_str, char_matrix_str)
221 OCTAVE_END_NAMESPACE(
octave)
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)
charNDArray char_array_value(bool=false) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
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 OCTAVE_CAST_BASE_VALUE(T, T_VAL, BASE_VAL)
#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)