Boost logo

Boost Users :

Subject: Re: [Boost-users] Multi_array and rotated views
From: Larry Evans (cppljevans_at_[hidden])
Date: 2011-06-28 08:49:06


On 06/27/11 23:48, petros wrote:
> Hi Larry,
> This is strange, since this line is commented out!!
> Best Regards,
> Petros
Yes. Very. Hmm... OOPS. Should have been:

> typedef boost::subarray_gen<IntArray,1>::type::const_iterator iterator1;
>
> for ( iterator3 it3 = a.begin(); it3 != a.end(); ++ it3 ) {
> cout << "in first iterator:";
> boost::detail::multi_array::const_sub_array<int,2> const& d2 = *it3;
> cout << (d2.shape())[0] << "x" << (d2.shape())[1] << endl;

IOW, it was in the non-rotated printout loops.
Sorry for careless quoting :(


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net