From: Julian C. <cum...@ca...> - 2007-08-07 01:13:11
|
Hi Patrik, Yes, it looks like this is missing but could be added easily. Compare with the "dot" function, where there are provided overloads for dotting a TinyVector with an expression. Please feel free to submit a patch for this (or tell me if you need help with that!). Regards, Julian C. > -----Original Message----- > From: bli...@li... > [mailto:bli...@li...] On > Behalf Of Patrik Jonsson > Sent: Friday, August 03, 2007 3:17 PM > To: bli...@li... > Subject: [Blitz-support] Missing tinyvector product(bzexpr) function > > Hi, > > I just tried to use the tiny vector product function to do > > product (v1-v2+1) (where the arguments are tiny vectors). > > However, I get a compilation are saying that > > blitz-fits.h:389: error: no matching function for call to > 'product(blitz::_bz_VecExpr<blitz::_bz_VecExprOp<blitz::TinyVe ctorIterConst<long > int, 2, 1>, blitz::TinyVectorIterConst<long int, 2, 1>, > blitz::_bz_Subtract<long int, long int> > >&)' > > I have to construct a tiny vector out of the expression and > then product that. Are the expression template versions of > this function missing, or do I have to include anything more > than tinyvec.h and tinyvec-et.h? > > cheers, > > /Patrik > > > |