26 #if defined (HAVE_CONFIG_H)
44 DEFBINOP (mul_dm_sm, diag_matrix, sparse_matrix)
68 DEFBINOP (ldiv_dm_sm, diag_matrix, sparse_matrix)
77 DEFBINOP (add_dm_sm, diag_matrix, sparse_matrix)
94 DEFBINOP (sub_dm_sm, diag_matrix, sparse_matrix)
113 DEFBINOP (mul_sm_dm, sparse_matrix, diag_matrix)
118 if (v1.rows () == 1 && v1.columns () == 1)
122 double d = v1.scalar_value ();
137 DEFBINOP (div_sm_dm, sparse_matrix, diag_matrix)
151 DEFBINOP (add_sm_dm, sparse_matrix, diag_matrix)
156 if (v1.rows () == 1 && v1.columns () == 1)
160 double d = v1.scalar_value ();
168 DEFBINOP (sub_sm_dm, sparse_matrix, diag_matrix)
173 if (v1.rows () == 1 && v1.columns () == 1)
177 double d = v1.scalar_value ();
209 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
Matrix matrix_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_sm_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)