Mercurial > octave-nkf
diff liboctave/fNDArray.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 | 9f870f73ab7d |
children | b29504415a2e |
line wrap: on
line diff
--- a/liboctave/fNDArray.h Thu Sep 03 06:59:53 2009 +0200 +++ b/liboctave/fNDArray.h Thu Sep 03 08:48:51 2009 +0200 @@ -146,6 +146,12 @@ FloatNDArray diag (octave_idx_type k = 0) const; + FloatNDArray& changesign (void) + { + MArrayN<float>::changesign (); + return *this; + } + typedef float (*dmapper) (float); typedef FloatComplex (*cmapper) (const FloatComplex&); typedef bool (*bmapper) (float);