Mercurial > hg > octave-nkf
comparison liboctave/CNDArray.h @ 7503:8c32f95c2639
convert mapper functions to new format
author | David Bateman <dbateman@free.fr> |
---|---|
date | Wed, 20 Feb 2008 04:22:50 -0500 |
parents | a1dbe9d80eee |
children | 36594d5bbe13 |
comparison
equal
deleted
inserted
replaced
7502:2ce6b4258e96 | 7503:8c32f95c2639 |
---|---|
114 static Complex resize_fill_value (void) { return Complex (0.0, 0.0); } | 114 static Complex resize_fill_value (void) { return Complex (0.0, 0.0); } |
115 | 115 |
116 // bool all_elements_are_real (void) const; | 116 // bool all_elements_are_real (void) const; |
117 // bool all_integers (double& max_val, double& min_val) const; | 117 // bool all_integers (double& max_val, double& min_val) const; |
118 | 118 |
119 typedef double (*dmapper) (const Complex&); | |
120 typedef Complex (*cmapper) (const Complex&); | |
121 typedef bool (*bmapper) (const Complex&); | |
122 | |
123 NDArray map (dmapper fcn) const; | |
124 ComplexNDArray map (cmapper fcn) const; | |
125 boolNDArray map (bmapper fcn) const; | |
126 | |
119 private: | 127 private: |
120 | 128 |
121 ComplexNDArray (Complex *d, const dim_vector& dv) | 129 ComplexNDArray (Complex *d, const dim_vector& dv) |
122 : MArrayN<Complex> (d, dv) { } | 130 : MArrayN<Complex> (d, dv) { } |
123 }; | 131 }; |