Mercurial > hg > octave-lyh
comparison liboctave/chNDArray.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 |
---|---|
87 // friend std::ostream& operator << (std::ostream& os, const charNDArray& a); | 87 // friend std::ostream& operator << (std::ostream& os, const charNDArray& a); |
88 // friend std::istream& operator >> (std::istream& is, charNDArray& a); | 88 // friend std::istream& operator >> (std::istream& is, charNDArray& a); |
89 | 89 |
90 static char resize_fill_value (void) { return '\0'; } | 90 static char resize_fill_value (void) { return '\0'; } |
91 | 91 |
92 typedef int (*mapper) (int); | |
93 boolNDArray bmap (mapper fcn) const; | |
94 NDArray dmap (mapper fcn) const; | |
95 charNDArray smap (mapper fcn) const; | |
96 | |
92 private: | 97 private: |
93 | 98 |
94 charNDArray (char *d, dim_vector& dv) : MArrayN<char> (d, dv) { } | 99 charNDArray (char *d, dim_vector& dv) : MArrayN<char> (d, dv) { } |
95 }; | 100 }; |
96 | 101 |