26 #if defined (HAVE_CONFIG_H)
46 DEFBINOP_OP (add, sparse_matrix, sparse_complex_matrix, +)
47 DEFBINOP_OP (sub, sparse_matrix, sparse_complex_matrix, -)
49 DEFBINOP_OP (mul, sparse_matrix, sparse_complex_matrix, *)
51 DEFBINOP (div, sparse_matrix, sparse_complex_matrix)
71 error (
"can't do A ^ B for A and B both matrices");
74 DEFBINOP (ldiv, sparse_matrix, sparse_complex_matrix)
79 if (v1.rows () == 1 && v1.columns () == 1)
86 =
xleftdiv (v1.sparse_matrix_value (),
105 DEFBINOP (el_ldiv, sparse_matrix, sparse_complex_matrix)
111 v1.sparse_matrix_value ()));
119 DEFCONV (sparse_complex_matrix_conv, sparse_matrix, sparse_complex_matrix)
178 sparse_complex_matrix_conv);
181 OCTAVE_END_NAMESPACE(
octave)
ComplexColumnVector quotient(const ComplexColumnVector &x, const ComplexColumnVector &y)
ComplexColumnVector product(const ComplexColumnVector &x, const ComplexColumnVector &y)
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_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
octave_idx_type rows() const
octave_idx_type columns() const
virtual SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
Complex complex_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
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_sm_scm_ops(octave::type_info &ti)
#define DEFCATOP_FN(name, t1, t2, f)
#define DEFBINOPX(name, t1, t2)
#define DEFCONV(name, a_dummy, b_dummy)
#define DEFBINOP(name, t1, t2)
#define DEFBINOP_FN(name, t1, t2, f)
#define DEFBINOP_OP(name, t1, t2, op)
#define INSTALL_ASSIGNCONV_TI(ti, t1, t2, tr)
#define OCTAVE_CAST_BASE_VALUE(T, T_VAL, BASE_VAL)
#define INSTALL_BINOP_TI(ti, op, t1, t2, f)
#define INSTALL_WIDENOP_TI(ti, t1, t2, f)
#define INSTALL_CATOP_TI(ti, 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_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_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)