Antwort: Re: [boost.multi_array] Question about iterators on multi_array_views
Hi Ron
Thanks for your fast reply, I'll going to check out your fix as soon
as possible.
Thanks
Bernhard
|---------+----------------------------------->
| | Ronald Garcia |
| |
-----------------------------------------------------------------------------------------------| | | | An: boost-users@lists.boost.org | | Kopie: | | Thema: Re: [Boost-users] [boost.multi_array] Question about iterators on | | multi_array_views | -----------------------------------------------------------------------------------------------|
Greetings Bernard, Indeed you have caught a bug in multi_array's view iterators. I have crafted a fix that I will check into CVS whenever Sourceforge is amenable. Thanks for the report. ron On May 24, 2006, at 8:07 AM, bernhard.maeder@zkb.ch wrote:
Hello everyone
I'm trying to use the boost.multi_array's iterators and came across a problem: calling end() on a certain multi_array_view only yields the same iterator, if it is called on exactly the same instance of the view. When, however, the view is created twice (using the same expression, of course), end() produces an iterator that doesn't compare to the first one.
In other words: m_a[indices[index_range()][1]].end() != m_a[indices[index_range()][1]].end()
I'm not sure whether this is just me, trying to use something in a way it shouldn't be used, or if this is a limitation of the multi_array library. I'd appreciate your opinion!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users ___________________________________________________________________ Disclaimer: Diese Mitteilung ist nur fuer die Empfaengerin / den Empfaenger bestimmt. Fuer den Fall, dass sie von nichtberechtigten Personen empfangen wird, bitten wir diese hoeflich, die Mitteilung an die ZKB zurueckzusenden und anschliessend die Mitteilung mit allen Anhaengen sowie allfaellige Kopien zu vernichten bzw. zu loeschen. Der Gebrauch der Information ist verboten. This message is intended only for the named recipient and may contain confidential or privileged information. If you have received it in error, please advise the sender by return e-mail and delete this message and any attachments. Any unauthorised use or dissemination of this information is strictly prohibited.
I'm currently using multi_array to represent 3D matrices of doubles, I was wondering which would be the best use since the array has to hold a very large amount of data. I' currently testing whith a multi_array of 800x800x100 to hold double or pointers to double and I have memory problems. When I declare the multi_array whith pointers to doubles I can usually go up to 775x775x100 without problems but when I try the same thing with a multi_array of doubles I get a bad alloc error. My real needs for the moment are for a multi_array of 800x600x57 but I will need bigger storage capacity in the near future, what are your sugesstions. Is the multi_array a pointer itself? How is memory management handled? How can go beyond these limits? -- Sébastien Fortier
participants (2)
-
bernhard.maeder@zkb.ch
-
Sebastien Fortier