Mercurial > octave-nkf
diff src/OPERATORS/op-int.h @ 9607:1be3c73ed7b5
reuse temporary arrays in nested expressions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 03 Sep 2009 08:48:51 +0200 |
parents | 3a1dd361f978 |
children | fb6b6fcafa62 |
line wrap: on
line diff
--- a/src/OPERATORS/op-int.h Thu Sep 03 06:59:53 2009 +0200 +++ b/src/OPERATORS/op-int.h Thu Sep 03 08:48:51 2009 +0200 @@ -698,7 +698,8 @@ } \ \ DEFNCUNOP_METHOD (m_incr, TYPE ## _matrix, increment) \ - DEFNCUNOP_METHOD (m_decr, TYPE ## _matrix, decrement) + DEFNCUNOP_METHOD (m_decr, TYPE ## _matrix, decrement) \ + DEFNCUNOP_METHOD (m_changesign, TYPE ## _matrix, changesign) #define OCTAVE_MM_INT_ARITH_OPS(PFX, T1, T2, T3) \ /* matrix by matrix ops. */ \ @@ -1096,7 +1097,8 @@ INSTALL_UNOP (op_hermitian, octave_ ## TYPE ## _matrix, m_transpose); \ \ INSTALL_NCUNOP (op_incr, octave_ ## TYPE ## _matrix, m_incr); \ - INSTALL_NCUNOP (op_decr, octave_ ## TYPE ## _matrix, m_decr); + INSTALL_NCUNOP (op_decr, octave_ ## TYPE ## _matrix, m_decr); \ + INSTALL_NCUNOP (op_uminus, octave_ ## TYPE ## _matrix, m_changesign); #define OCTAVE_INSTALL_MM_INT_ARITH_OPS(PFX, T1, T2) \ INSTALL_BINOP (op_add, octave_ ## T1 ## matrix, octave_ ## T2 ## matrix, PFX ## _add); \