Mercurial > hg > octave-lyh
diff liboctave/fCNDArray.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/fCNDArray.h +++ b/liboctave/fCNDArray.h @@ -138,6 +138,12 @@ FloatComplexNDArray diag (octave_idx_type k = 0) const; + FloatComplexNDArray& changesign (void) + { + MArrayN<FloatComplex>::changesign (); + return *this; + } + typedef float (*dmapper) (const FloatComplex&); typedef FloatComplex (*cmapper) (const FloatComplex&); typedef bool (*bmapper) (const FloatComplex&);