comparison liboctave/CNDArray.h @ 7620:36594d5bbe13

Move diag function into the octave_value class
author David Bateman <dbateman@free.fr>
date Fri, 21 Mar 2008 00:08:24 +0100
parents 8c32f95c2639
children 82be108cc558
comparison
equal deleted inserted replaced
7619:56012914972a 7620:36594d5bbe13
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 ComplexNDArray diag (octave_idx_type k = 0) const;
120
119 typedef double (*dmapper) (const Complex&); 121 typedef double (*dmapper) (const Complex&);
120 typedef Complex (*cmapper) (const Complex&); 122 typedef Complex (*cmapper) (const Complex&);
121 typedef bool (*bmapper) (const Complex&); 123 typedef bool (*bmapper) (const Complex&);
122 124
123 NDArray map (dmapper fcn) const; 125 NDArray map (dmapper fcn) const;