Mercurial > hg > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
9606:a04352386a6b | 9607:1be3c73ed7b5 |
---|---|
136 // bool all_elements_are_real (void) const; | 136 // bool all_elements_are_real (void) const; |
137 // bool all_integers (float& max_val, float& min_val) const; | 137 // bool all_integers (float& max_val, float& min_val) const; |
138 | 138 |
139 FloatComplexNDArray diag (octave_idx_type k = 0) const; | 139 FloatComplexNDArray diag (octave_idx_type k = 0) const; |
140 | 140 |
141 FloatComplexNDArray& changesign (void) | |
142 { | |
143 MArrayN<FloatComplex>::changesign (); | |
144 return *this; | |
145 } | |
146 | |
141 typedef float (*dmapper) (const FloatComplex&); | 147 typedef float (*dmapper) (const FloatComplex&); |
142 typedef FloatComplex (*cmapper) (const FloatComplex&); | 148 typedef FloatComplex (*cmapper) (const FloatComplex&); |
143 typedef bool (*bmapper) (const FloatComplex&); | 149 typedef bool (*bmapper) (const FloatComplex&); |
144 | 150 |
145 FloatNDArray map (dmapper fcn) const; | 151 FloatNDArray map (dmapper fcn) const; |