|
From: | Peter Cloetens |
Subject: | Re: Structures and tensors |
Date: | Wed, 2 Aug 2006 10:36:01 +0200 |
Hi, I had similar effects with slow code containing a lot of 3-dimensional arrays. Then I rewrote everything with cells, where each element of the cell array corresponds to 1 matrix. This improved the speed very considerably. You use: E{k} instead of E(:,:,k) As long as you do not need to access your data in the third dimension this is much more efficient and readable. Peter On Aug 1, 2006, at 5:55 PM, Cédric Févotte wrote:
Peter Cloetens ESRF BP 220 F-38043 Grenoble tel : + 33 (0)4 76 88 26 50 fax : + 33 (0)4 76 88 27 85 e-mail: address@hidden web: http://www.esrf.fr/ |
[Prev in Thread] | Current Thread | [Next in Thread] |