[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mapper functions for 3.1
From: |
John W. Eaton |
Subject: |
Re: mapper functions for 3.1 |
Date: |
Wed, 20 Feb 2008 04:25:49 -0500 |
On 17-Feb-2008, David Bateman wrote:
| John W. Eaton wrote:
| > On 16-Feb-2008, John W. Eaton wrote:
| >
| > | There might be a slick way to combine the functor
| > | and functor_with_conversion classes using default template parameters
| > | but I don't see it at the moment.
| >
| > OK, here is one way. Define the functor class like this:
|
|
| Not sure I'll have time to look at this in the next few days, so feel
| free to do this change if I don't get there.
OK, I applied your patch and made some more changes and checked in the
results. I restored the map functions in the matrix and row/column
vector classes that your patch removed. I left the apply functions
out, though it might not be too hard to restore them with the same
template and forwarding function technique. The functor templates are
in a new header file, liboctave/functor.h. I only included it in the
.cc files. I did not try to put the template technique in the sparse
classes.
Maybe we should also move the any_element_less/greater_than functions
into the Array class?
Thanks,
jwe
- Re: mapper functions for 3.1, (continued)
- Re: mapper functions for 3.1, David Bateman, 2008/02/15
- Re: mapper functions for 3.1, John W. Eaton, 2008/02/16
- Re: mapper functions for 3.1, David Bateman, 2008/02/16
- Re: mapper functions for 3.1, John W. Eaton, 2008/02/16
- Re: mapper functions for 3.1, John W. Eaton, 2008/02/16
- Re: mapper functions for 3.1, David Bateman, 2008/02/17
- Re: mapper functions for 3.1, John W. Eaton, 2008/02/18
- Re: mapper functions for 3.1,
John W. Eaton <=