26 #if defined (HAVE_CONFIG_H)
48 DEFBINOP_OP (add, sparse_complex_matrix, complex_matrix, +)
49 DEFBINOP_OP (sub, sparse_complex_matrix, complex_matrix, -)
51 DEFBINOP_OP (mul, sparse_complex_matrix, complex_matrix, *)
53 DEFBINOP (div, sparse_complex_matrix, complex_matrix)
68 error (
"can't do A ^ B for A and B both matrices");
71 DEFBINOP (ldiv, sparse_complex_matrix, complex_matrix)
76 if (v1.rows () == 1 && v1.columns () == 1)
103 DEFBINOP (el_pow, sparse_complex_matrix, complex_matrix)
113 DEFBINOP (el_ldiv, sparse_complex_matrix, matrix)
119 v1.sparse_complex_matrix_value ()));
125 DEFCATOP (scm_cm, sparse_complex_matrix, complex_matrix)
131 (v1.sparse_complex_matrix_value ().concat (tmp,
ra_idx));
134 DEFNDASSIGNOP_FN (assign, sparse_complex_matrix, complex_matrix, complex_matrix, assign);
135 DEFNDASSIGNOP_FN (sgl_assign, sparse_complex_matrix, float_complex_matrix, complex_matrix, assign);
190 OCTAVE_END_NAMESPACE(
octave)
ComplexColumnVector quotient(const ComplexColumnVector &x, const ComplexColumnVector &y)
ComplexColumnVector product(const ComplexColumnVector &x, const ComplexColumnVector &y)
ComplexMatrix trans_mul(const SparseComplexMatrix &m, const ComplexMatrix &a)
ComplexMatrix herm_mul(const SparseComplexMatrix &m, const ComplexMatrix &a)
boolMatrix mx_el_le(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_ne(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_or(const boolMatrix &m1, const boolMatrix &m2)
boolMatrix mx_el_and(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)
MatrixType matrix_type() const
ComplexMatrix complex_matrix_value(bool=false) const
ComplexNDArray complex_array_value(bool=false) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void() error(const char *fmt,...)
octave_int< T > pow(const octave_int< T > &a, const octave_int< T > &b)
const octave_base_value & a2
const octave_base_value const Array< octave_idx_type > & ra_idx
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
void install_scm_cm_ops(octave::type_info &ti)
#define DEFNDASSIGNOP_FN(name, t1, t2, e, f)
#define DEFBINOPX(name, t1, t2)
#define DEFBINOP(name, t1, t2)
#define DEFBINOP_FN(name, t1, t2, f)
#define DEFBINOP_OP(name, t1, t2, op)
#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 DEFCATOP(name, t1, t2)
#define INSTALL_ASSIGNOP_TI(ti, op, t1, t2, f)
octave_value op_ne(const octave_value &a1, const octave_value &a2)
octave_value op_el_ldiv(const octave_value &a1, const octave_value &a2)
octave_value op_add(const octave_value &a1, const octave_value &a2)
octave_value op_gt(const octave_value &a1, const octave_value &a2)
octave_value op_el_div(const octave_value &a1, const octave_value &a2)
octave_value op_el_or(const octave_value &a1, const octave_value &a2)
octave_value op_sub(const octave_value &a1, const octave_value &a2)
octave_value op_mul(const octave_value &a1, const octave_value &a2)
octave_value op_le(const octave_value &a1, const octave_value &a2)
octave_value op_el_and(const octave_value &a1, const octave_value &a2)
octave_value op_herm_mul(const octave_value &a1, const octave_value &a2)
octave_value op_eq(const octave_value &a1, const octave_value &a2)
octave_value op_el_pow(const octave_value &a1, const octave_value &a2)
octave_value op_ldiv(const octave_value &a1, const octave_value &a2)
octave_value op_pow(const octave_value &a1, const octave_value &a2)
octave_value op_ge(const octave_value &a1, const octave_value &a2)
octave_value op_el_mul(const octave_value &a1, const octave_value &a2)
octave_value op_div(const octave_value &a1, const octave_value &a2)
octave_value op_trans_mul(const octave_value &a1, const octave_value &a2)
octave_value op_lt(const octave_value &a1, const octave_value &a2)
Matrix xdiv(const Matrix &a, const SparseMatrix &b, MatrixType &typ)
Matrix xleftdiv(const SparseMatrix &a, const Matrix &b, MatrixType &typ)
octave_value elem_xpow(double a, const SparseMatrix &b)