Hi rooters,
It seems there is a small error in the doc of the class TMatrixD. In the
code:
void foo(TMatrixD &m, TMatrixD &m1)
{
typedef double (*dfunc_t)(double);
class ApplyFunction : public TElementActionD {
dfunc_t *fFunc;
void Operation(Double_t &element) { element=fFunc(element); }
public:
ApplyFunction(dfunc_t func):fFunc(func) {}
};
m.Apply(ApplyFunction(TMath::Sin));
m1.Apply(ApplyFunction(TMath::Cos));
}
Shouldn't it read:
dfunc_t fFunc;
?
Steve
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET