26 #if defined (HAVE_CONFIG_H)
43 DEFBINOP (mul_pm_sm, perm_matrix, sparse_matrix)
54 else if (v1.rows () == 1 && v1.columns () == 1)
60 DEFBINOP (ldiv_pm_sm, perm_matrix, sparse_matrix)
70 DEFBINOP (mul_sm_pm, sparse_matrix, perm_matrix)
75 if (v1.rows () == 1 && v1.columns () == 1)
77 double d = v1.scalar_value ();
87 DEFBINOP (div_sm_pm, sparse_matrix, perm_matrix)
108 OCTAVE_END_NAMESPACE(
octave)
PermMatrix inverse() const
virtual SparseMatrix sparse_matrix_value(bool=false) const
octave_idx_type rows() const
octave_idx_type columns() const
virtual PermMatrix perm_matrix_value() const
double scalar_value(bool frc_str_conv=false) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
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_pm_sm_ops(octave::type_info &ti)
#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_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)