![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2003-12-12 14:12:06
Andrius,
I did not say that ternary functions don't exist, just that the example
given previously was not appropriate. Hopefully, my previous e-mail
regarding the difference between fixed parameters and function arguments
should have made this clear. The only difference between the functor and a
function is that you can have state maintained in the functor object. So if
you can have a ternary function, then you can have a three-argument functor
as well.
Regards, Julian C.
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of
> Andrius Kurtinaitis
> Sent: Friday, December 12, 2003 3:17 AM
> To: Support list for Blitz++
> Subject: Re: [Blitz-support] functors
>
>
> Julian Cummings wrote:
> > The
> > main point is that this is a unary function, not a ternary function.
>
> What is then the purpose of the three-argument functors?
>
> BZ_DECLARE_FUNCTOR(classname) // for one argument functors
> BZ_DECLARE_FUNCTOR2(classname) // for two argument functors
> BZ_DECLARE_FUNCTOR3(classname) // for three argument functors
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi> /blitz-support
>