Mercurial > octave-nkf
comparison 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 |
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 (double& max_val, double& min_val) const; | 137 // bool all_integers (double& max_val, double& min_val) const; |
138 | 138 |
139 ComplexNDArray diag (octave_idx_type k = 0) const; | 139 ComplexNDArray diag (octave_idx_type k = 0) const; |
140 | 140 |
141 ComplexNDArray& changesign (void) | |
142 { | |
143 MArrayN<Complex>::changesign (); | |
144 return *this; | |
145 } | |
146 | |
141 typedef double (*dmapper) (const Complex&); | 147 typedef double (*dmapper) (const Complex&); |
142 typedef Complex (*cmapper) (const Complex&); | 148 typedef Complex (*cmapper) (const Complex&); |
143 typedef bool (*bmapper) (const Complex&); | 149 typedef bool (*bmapper) (const Complex&); |
144 | 150 |
145 NDArray map (dmapper fcn) const; | 151 NDArray map (dmapper fcn) const; |