![]() |
Blitz Support : |
From: Patrick Guio (Patrick.Guio_at_[hidden])
Date: 2004-09-12 11:41:10
Hi Julian,
I ran the testsuite recently and found that the testsuite/interlace.cpp
is broken.
I tracked back the problem and it looks like the "subarray.reference(tmp)"
is not done correctly in the makeInterlacedArray() at line 81 in
blitz/array/interlace.cc
Reintroducing the commented line (at line 213) in blitz/array/methods.cc:
data_ = const_cast<P_numtype*>(array.data_);
fixes the problem for interlace.cpp.
but as your comment suggests:
// JCC: changeBlock() already resets the data_ pointer to zeroth element
it should already be done already in the call to changeBlock() at line 332
in blitz/memblock.h:
data_ = block_->data() + offset;
What do you think?
Cheers, Patrick