![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2003-07-30 12:46:23
Hi Patrik,
I am confused by your question. There is a constructor for a TinyVector
that takes another TinyVector with a different element type as its argument.
This constructor is declared at line 101 of <blitz/tinyvec.h> and defined at
line 60 of <blitz/tinyvec.cc>. It does precisely what you would expect; it
loops over the TinyVector elements and does a static_cast on each one. Are
you working with an old version of the Blitz++ sources?
Regards, Julian C.
Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings_at_[hidden]
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of Patrik
> Sent: Wednesday, July 23, 2003 11:08 PM
> To: Support list for Blitz++
> Subject: [Blitz-support] tiny vector type conversion?
>
>
> Hi,
>
> I'm wondering how you go about converting a tiny vector of
> one type into
> another. There doesn't seem to be an implicit conversion
> defined, and
> blitz::cast (x,())doesn't work either.
>
> Regards,
>
> /Patrik
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi> /blitz-support
>