![]() |
Blitz Support : |
From: Andrius Kurtinaitis (andrius.kurtinaitis_at_[hidden])
Date: 2005-05-25 06:36:15
Thank you, Julian,
are these changes in CVS?
Andrius
> I found a relatively simple way to at least resolve the problem that Andrius
> reported. His test code was trying to multiply an Array of TinyVectors of
> complex<double> by a TinyVector of double. This expression should simply
> multiply each element of the Array by the "scalar" TinyVector of double
> object. What I have done to address this problem is to extend the
> definition of Array/scalar binary operations in <blitz/array/ops.h> to
> include Array/TinyVector binary operations. So now you will be able to
> perform binary math operations between an Array of arbitrary element type
> and a TinyVector of any
> element type (including complex) and any dimension. Of course, the binary
> operation between the Array's element type and the TinyVector type must be
> defined. The definitions for binary ops between TinyVectors or TinyVectors
> and scalars will still be provided by the old ET machinery in
> <blitz/vector-et.h> for the time being. Longer term, I would prefer to
> separate out the TinyVector binary ops from <blitz/vector-et.h> and then
> experiment with replacing TinyVector with the tvmet Vector class, which has
> improved coding for TinyVector-type operations.
>
> Any comments about these topics and my proposed changes are most welcome.
> Regards, Julian C.
>
> Dr. Julian C. Cummings Office: PB-111
> Caltech/CACR, MC 158-79 Phone: 626-395-2543
> 1200 E. California Blvd. Fax: 626-584-5917
> Pasadena, CA 91125
>
>
>
>
>
> Dr. Julian C. Cummings Office: PB-111
> Caltech/CACR, MC 158-79 Phone: 626-395-2543
> 1200 E. California Blvd. Fax: 626-584-5917
> Pasadena, CA 91125
>
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>
>