![]() |
Blitz Bugs : |
From: Julian Cummings (cummings_at_[hidden])
Date: 2004-05-07 12:23:15
Hi Victor,
Yes, you have discovered the problem. There is a similar Array method
called resizeAndPreserve() that will retain the existing Array element
values where possible.
Using this method, you should get the desired behavior with both
compiler versions.
Regards, Julian C.
Victor Munoz wrote:
>>Naturally, the "woody" behavior is the desired one. Has anyone had a similar
>>problem? Of course, it could be a problem with g++, but I'm just
>>guessing it's more likely some issue with Blitz++. (It could also be that
>>I'm not using resize correctly.)
>>
>>
>>
>
> In case anyone bothered to read the previous mail, sorry. Later in the day
>I noticed I was using resize incorrectly in fact, since arrays are left
>uninitialized after resizing. Being new to Blitz++, I was confused by the
>different outputs in each machine. Regards,
>
> Victor
>
>_______________________________________________
>Blitz-bugs mailing list
>Blitz-bugs_at_[hidden]
>http://www.oonumerics.org/mailman/listinfo.cgi/blitz-bugs
>
>
-- 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