26 #if defined (HAVE_CONFIG_H)
55 DEFBINOP (mul_dm_scm, diag_matrix, sparse_complex_matrix)
80 DEFBINOP (mul_cdm_sm, complex_diag_matrix, sparse_matrix)
105 DEFBINOP (mul_cdm_scm, complex_diag_matrix, sparse_complex_matrix)
130 DEFBINOP (ldiv_dm_scm, diag_matrix, sparse_complex_matrix)
140 DEFBINOP (ldiv_cdm_sm, complex_diag_matrix, sparse_matrix)
150 DEFBINOP (ldiv_cdm_scm, complex_diag_matrix, sparse_complex_matrix)
156 return xleftdiv (v1.complex_diag_matrix_value (),
161 DEFBINOP (add_dm_scm, diag_matrix, sparse_complex_matrix)
178 DEFBINOP (add_cdm_sm, complex_diag_matrix, sparse_matrix)
195 DEFBINOP (add_cdm_scm, complex_diag_matrix, sparse_complex_matrix)
212 DEFBINOP (sub_dm_scm, diag_matrix, sparse_complex_matrix)
229 DEFBINOP (sub_cdm_sm, complex_diag_matrix, sparse_matrix)
246 DEFBINOP (sub_cdm_scm, complex_diag_matrix, sparse_complex_matrix)
265 DEFBINOP (mul_scm_dm, sparse_complex_matrix, diag_matrix)
270 if (v1.rows () == 1 && v1.columns () == 1)
274 std::complex<double>
d = v1.complex_value ();
290 DEFBINOP (mul_sm_cdm, sparse_matrix, complex_diag_matrix)
295 if (v1.rows () == 1 && v1.columns () == 1)
299 std::complex<double>
d = v1.complex_value ();
315 DEFBINOP (mul_scm_cdm, sparse_complex_matrix, complex_diag_matrix)
320 if (v1.rows () == 1 && v1.columns () == 1)
324 std::complex<double>
d = v1.complex_value ();
347 DEFBINOP (div_scm_dm, sparse_complex_matrix, diag_matrix)
357 return xdiv (v1.sparse_complex_matrix_value (),
362 DEFBINOP (div_sm_cdm, sparse_matrix, complex_diag_matrix)
372 return xdiv (v1.sparse_matrix_value (),
377 DEFBINOP (div_scm_cdm, sparse_complex_matrix, complex_diag_matrix)
387 return xdiv (v1.sparse_complex_matrix_value (),
392 DEFBINOP (add_sm_cdm, sparse_matrix, complex_diag_matrix)
409 DEFBINOP (add_scm_dm, sparse_complex_matrix, diag_matrix)
426 DEFBINOP (add_scm_cdm, sparse_complex_matrix, complex_diag_matrix)
443 DEFBINOP (sub_sm_cdm, sparse_matrix, complex_diag_matrix)
460 DEFBINOP (sub_scm_dm, sparse_complex_matrix, diag_matrix)
471 return octave_value (v1.sparse_complex_matrix_value () + (-
d));
477 DEFBINOP (sub_scm_cdm, sparse_complex_matrix, complex_diag_matrix)
488 return octave_value (v1.sparse_complex_matrix_value () + (-
d));
551 OCTAVE_END_NAMESPACE(
octave)
void mark_as_unsymmetric()
MatrixType matrix_type() const
virtual SparseMatrix sparse_matrix_value(bool=false) const
octave_idx_type rows() const
octave_idx_type columns() const
virtual DiagMatrix diag_matrix_value(bool=false) const
virtual SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
virtual ComplexDiagMatrix complex_diag_matrix_value(bool=false) const
Complex complex_value(bool=false) const
double scalar_value(bool frc_str_conv=false) const
MatrixType matrix_type() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
void install_dm_scm_ops(octave::type_info &ti)
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 DEFBINOP(name, t1, t2)
#define OCTAVE_CAST_BASE_VALUE(T, T_VAL, BASE_VAL)
#define INSTALL_BINOP_TI(ti, op, t1, t2, f)
octave_value op_add(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_ldiv(const octave_value &a1, const octave_value &a2)
octave_value op_div(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)