Blitz logo

Blitz Devel :

From: Todd Veldhuizen (tveldhui_at_[hidden])
Date: 1998-08-24 09:05:49


Thanks, Derrick. A good idea, I've incorporated your patches into the
source and documentation.

Cheers,
Todd

> Hi. I've been working a lot recently with arrays with strange bases,
> and I need a function that can reindex an array, i.e. return an array
> with the same data but a different base vector.
>
> Is there any way to do this without support from within the Array
> class itself? All my kludges had memory leaks because I could not
> access the reference counting mechanism. If it can't be done
> externally, I've hacked the function into the Array class. Below
> is a pair of context diffs for blitz/array.h and
> blitz/array/methods.cc (I hacked version 0.4.2). If you think this is
> useful and want to include it (or some modified form of it) in Blitz, go
> ahead, but you'd better check it first. My understanding of Blitz
> internals is a little shaky.
>
> Derrick Bass
>
> *** array.h.orig Fri Aug 21 22:09:21 1998
> --- array.h Fri Aug 21 22:23:21 1998
[...]

--------------------- blitz-dev list --------------------------------
* To subscribe/unsubscribe: mail to majordomo_at_[hidden], with
"subscribe blitz-dev" or "unsubscribe blitz-dev" in the body of the message
* Blitz++ web page: http://oonumerics.org/blitz/