Mercurial > octave
diff src/OPERATORS/op-cm-s.cc @ 9546:1beb23d2b892
optimize op= in common cases
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 19 Aug 2009 13:47:59 +0200 |
parents | c099705f1aa7 |
children | 319e2ab9b8ae |
line wrap: on
line diff
--- a/src/OPERATORS/op-cm-s.cc Mon Aug 17 14:46:18 2009 +0200 +++ b/src/OPERATORS/op-cm-s.cc Wed Aug 19 13:47:59 2009 +0200 @@ -110,6 +110,9 @@ DEFNDASSIGNOP_FN (assign, complex_matrix, scalar, complex_array, assign) +DEFNDASSIGNOP_OP (assign_mul, complex_matrix, scalar, scalar, *=) +DEFNDASSIGNOP_OP (assign_div, complex_matrix, scalar, scalar, /=) + void install_cm_s_ops (void) { @@ -135,6 +138,9 @@ INSTALL_CATOP (octave_complex_matrix, octave_scalar, cm_s); INSTALL_ASSIGNOP (op_asn_eq, octave_complex_matrix, octave_scalar, assign); + + INSTALL_ASSIGNOP (op_mul_eq, octave_complex_matrix, octave_scalar, assign_mul); + INSTALL_ASSIGNOP (op_div_eq, octave_complex_matrix, octave_scalar, assign_div); } /*