Blitz logo

Blitz Support :

From: Todd Veldhuizen (tveldhui_at_[hidden])
Date: 2003-08-26 13:36:04


It does look like this is missing, I see this comment at the bottom of
blitz/vecexpr.h:

// NEEDS_WORK: implement operator- for Range, VectorPick, TinyVector

Sorry about that, looks like I never got around to implementing those.
As a kludge, "0-x" should work as well as "-x".

Todd

On Tue, 26 Aug 2003, Patrik wrote:
> At 12:54 PM 8/26/2003 +0100, you wrote:
> >On Thu, 21 Aug 2003, Patrik wrote:
> >
> > > I don't know if I've never tried this before, but it seems there is no
> > unary
> > > minus for TinyVector. Is there a reason for this? Or am I missing
> > > something?
> >
> >I think you just need to:
> >
> >#include <blitz/tinyvec-et.h>
> >
> >to get these and all the other tinyvector operators. I think this isn't
> >included automatically from tinyvec.h since it slows down compilation quite a
> >bit (vecbops.cc, for example, is 17000 lines of templated operators!)
>
> well, trouble is that I am...
>
> i even grepped through all the sources and I can't see a definition for a
> unary minus operator anywhere... this is weird. And unless i'm completely
> spacing now, I am using the current cvs code. so, this operator should exist?
>
> /patrik
>
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>

-- 
Todd Veldhuizen  /  tveldhui_at_[hidden]  /  Indiana University Computer Science