![]() |
Blitz Support : |
From: Julian Cummings (cummings_at_[hidden])
Date: 2005-05-25 19:14:32
Hi Andrius,
Yes, I went ahead and checked this into the cvs repository after checking
with the blitz testsuite codes and with a modified version of your example
code. I really should have fixed this long ago. Having binary ops between
TinyVectors and Arrays fail is a major oversight! I will need to produce a
blitz-0.9 (or maybe blitz-0.81 at least) soon to resolve this and other bugs
recently fixed.
-- Julian C.
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of
> Andrius Kurtinaitis
> Sent: Wednesday, May 25, 2005 4:36 AM
> To: Support list for Blitz++
> Subject: Re: [Blitz-support] Reply to Andrius Kurtinaitis
>
> 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
> >
> >
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>
>