Mercurial > hg > octave-nkf
diff liboctave/CNDArray.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 | 1beb23d2b892 |
children | b29504415a2e |
line wrap: on
line diff
--- a/liboctave/CNDArray.h +++ b/liboctave/CNDArray.h @@ -138,6 +138,12 @@ ComplexNDArray diag (octave_idx_type k = 0) const; + ComplexNDArray& changesign (void) + { + MArrayN<Complex>::changesign (); + return *this; + } + typedef double (*dmapper) (const Complex&); typedef Complex (*cmapper) (const Complex&); typedef bool (*bmapper) (const Complex&);