Blitz logo

Blitz Support :

From: Julian Cummings (cummings_at_[hidden])
Date: 2003-09-02 15:08:41


Patrik, Todd:

I just added the missing unary minus operator for TinyVector in
blitz/vecexpr.h
and updated the cvs repository.

Regards, Julian C.

Todd Veldhuizen wrote:

>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
>>
>>
>>
>
>
>
>

-- 
Dr. Julian C. Cummings                       E-mail: cummings_at_[hidden]
California Institute of Technology           Phone:  626-395-2543
1200 E. California Blvd., Mail Code 158-79   Fax:    626-584-5917
Pasadena, CA 91125