Mercurial > hg > octave-nkf
diff src/ov-intx.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 | a04352386a6b |
children | e793865ede63 |
line wrap: on
line diff
--- a/src/ov-intx.h +++ b/src/ov-intx.h @@ -317,6 +317,14 @@ OCTAVE_INT_T::clear_conv_flag (); } + void changesign (void) + { + matrix_ref ().changesign (); + if (OCTAVE_INT_T::get_math_trunc_flag ()) + gripe_unop_integer_math_truncated ("-", type_name (). c_str ()); + OCTAVE_INT_T::clear_conv_flag (); + } + idx_vector index_vector (void) const { return idx_cache ? *idx_cache : set_idx_cache (idx_vector (matrix)); }