-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Grant Goodyear Sent: Tuesday, August 02, 2005 10:22 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] multi_array_ref timing issue
Sohail Somani wrote: [Tue Aug 02 2005, 12:01:43PM CDT]
Can you give me some tests? I can run them and check.
My previous e-mail (Message-ID: <20050801203959.GQ22950@bmb24.uth.tmc.edu>) has two self-contained programs: one that uses multi_array_ref, and one that does not. That's what I've been using for my tests.
Ok so I ran these (not to completion, I don't have *that* much time :)), but it appears that the indexing operation for multi_array is very slow in that a single index operation requires a lot of indirection and construction of a couple of different types (which is repeated for each dimension). I thought iterators may be faster. So I reworked your code to use iterators. Its even slower. I think the indexing method you use is the best for your application. I hope someone can correct me.