From: Bela B. <ba...@ph...> - 2007-12-13 17:23:42
|
Hi, I have a situation where I need to resize an array (rank 7) *very* often, where the overall number of items stays fixed and the extents get shuffled around (I'm rearranging large tensors). I end up spending a significant amount of CPU time in the resize() function. If I understand the source code of Blitz++ correctly, it will allocate a new array for every resize, even if that would actually be unnecessary in my situation. Is there any way of avoiding this without modifying the Blitz source code - or if not, does anyone have an idea how I could modify this behaviour without having to get acquainted with the Blitz internals too much? Thanks, Bela -- Bela Bauer ba...@ph... http://www.aitrob.de |