Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!nrc-news.nrc.ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: vectorise a reshape loop
Date: Thu, 17 Jul 2008 16:36:32 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 24
Message-ID: <g5nseg$994$1@canopus.cc.umanitoba.ca>
References: <g5krk2$77v$1@fred.mathworks.com> <g5n9fu$6vv$1@fred.mathworks.com> <g5ngf2$fdp$1@fred.mathworks.com> <g5nj77$j6j$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1216312592 9508 192.70.172.160 (17 Jul 2008 16:36:32 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 17 Jul 2008 16:36:32 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:480025



In article <g5nj77$j6j$1@fred.mathworks.com>,
John D'Errico <woodchips@rochester.rr.com> wrote:
>"Dave Brackett" <davebrackett@hotmail.com> wrote in message 
><g5ngf2$fdp$1@fred.mathworks.com>...
>> I think the communication issue stems from the fact i didn't
>> understand the number of array dimensions could be above 3.
>> To me, a matrix with rows, columns, and pages was always a
>> 3D matrix (as it forms a 3D 'block'). Evidently this is not
>> the case.

>Ah. This was the problem. Yes, I don't think
>there is any real limit on the number of
>dimensions. Yes, there may be a limit, but
>it is probably some large number.

The number of dimensions is -at least- 2^16+1

foo = [5;7];
bar = permute(foo,[2:65537,1]);

I have it working on 2^20+1 but it is taking a fair bit of time.
-- 
  "The slogans of an inadequate criticism peddle ideas to fashion"
                                              -- Walter Benjamin