Back to the main page.

Bug 120 - pre-allocate mne

Status CLOSED FIXED
Reported 2010-07-23 14:22:00 +0200
Modified 2011-01-05 12:01:08 +0100
Product: FieldTrip
Component: inverse
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P1 trivial
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Gio Piantoni - 2010-07-23 14:22:37 +0200

I was testing minimumnormestimate.m It was extremely slow with many dipoles, very simple preallocation speeds function up really a lot. Just add: dipout.pow = nan( size(dipout.mom,2), size(dat,2)); before: % for convenience also compute power at each location for i=dip.inside dipout.pow(i,:) = sum(dipout.mom{i}.^2, 1); end dipout.pow(dip.outside,:) = nan; Please, double-check if the dimensions are correct.


Robert Oostenveld - 2010-09-02 11:35:41 +0200

done


Robert Oostenveld - 2010-09-02 11:36:20 +0200

PS the fix is contained in SVN revision 1592 which will be released on the ftp server in the evening of 2 September 2010


Robert Oostenveld - 2011-01-05 11:57:03 +0100

selected a long list of resolved bugs from roboos and changed the status into "RESOLVED"


Robert Oostenveld - 2011-01-05 12:01:08 +0100

selected all old bugs from roboos with status RESOLVED and changed it into CLOSED