Problem with time dynamic envelope correlation

Hi Francois,

I am not sure if its a bug but couldn't find an appropriate discussion for this so posting it here.
I am computing static (orthogonalised) AEC on source localised data (LCMV). I have 20 participants in one group and have selected 7 scouts from previous analyses (the scouts were exported from DK atlas and imported again as a separate atlas). Each trial is 60s long and there are 10 trials (for most participants).

For each participant, I want to compute AEC on these sources. I have selected "before" and "mean" as scout options and yet it is generating a 15002x15002 matrix per epoch (the analysis is only for one frequency band). This is becoming extremely time consuming (several hours for just one epoch of one participant) even on a HPC and I am also using the parallel computing toolbox.

Any help would be highly appreciated.