Mercurial > octave
diff src/OPERATORS/op-cm-cm.cc @ 9607:1be3c73ed7b5
reuse temporary arrays in nested expressions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 03 Sep 2009 08:48:51 +0200 |
parents | 319e2ab9b8ae |
children | afcf852256d2 |
line wrap: on
line diff
--- a/src/OPERATORS/op-cm-cm.cc Thu Sep 03 06:59:53 2009 +0200 +++ b/src/OPERATORS/op-cm-cm.cc Thu Sep 03 08:48:51 2009 +0200 @@ -70,6 +70,7 @@ DEFNCUNOP_METHOD (incr, complex_matrix, increment) DEFNCUNOP_METHOD (decr, complex_matrix, decrement) +DEFNCUNOP_METHOD (changesign, complex_matrix, changesign) // complex matrix by complex matrix ops. @@ -186,6 +187,7 @@ INSTALL_NCUNOP (op_incr, octave_complex_matrix, incr); INSTALL_NCUNOP (op_decr, octave_complex_matrix, decr); + INSTALL_NCUNOP (op_uminus, octave_complex_matrix, changesign); INSTALL_BINOP (op_add, octave_complex_matrix, octave_complex_matrix, add); INSTALL_BINOP (op_sub, octave_complex_matrix, octave_complex_matrix, sub);