Blitz logo

Blitz Support :

From: Marc Vaillant (marc_at_[hidden])
Date: 2003-06-12 08:42:14


Hi, I'd like to use a BZ_DECLARE_FUNCTION on a function object. i.e.
something like.

struct gauss{
        double operator()(const double& x, const double& kernelSigma) const {
return exp(-x*x/(kernelSigma*kernelSigma)); }

BZ_DECLARE_FUNCTION2_RET(gauss(),double);

Is it possible to do something like this?

Thanks,
Marc