![]() |
Blitz Support : |
From: Julian Cummings (cummings_at_[hidden])
Date: 2004-07-06 13:06:07
Hi Hans,
I think operator* is already used to mean an elementwise product, just
as it is used for
blitz Arrays. So TinyVector * TinyVector yields a TinyVector whose
elements are the
product of the elements of the two original TinyVectors. That may seem
a bit strange,
but since there are both inner and outer products defined for vectors,
you really can't
use operator* to mean "product" in both senses anyway. That's why dot()
and product()
were introduced.
I don't have a good answer for your other question regarding debuggers.
Examining the
data_ member of a TinyVector is the correct way to see the element data.
I am not sure
what could be done to make this any easier. Let us know if you have a
suggestion.
Regards, Julian C.
Hans Kruber wrote:
>Hi,
>why do one have to use product() and dot() for the
>TinyVector/TinyMatrix? I mean, is there any reason you
>didn't overload the * operator?
>Is there a way to make the * operator work as
>dot/product?
>
>And does anybody know a good way of looking at the
>content of the variables in a debugger, especially in
>Visual C++ 2003?
>I found that x.data_ in quickwatch works, but this is
>not very comfortable. A way to show the values in a
>tooltip would be nice...
>Not being able to look at the data easily in a
>debugger would be a huge disadvantage.
>
>-- Hans
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>http://promotions.yahoo.com/new_mail
>_______________________________________________
>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