Hi,
My code is the following
parfor nn=1:Na temp=A{nn}*B{nn}; temp(1,1) = 0; temp(Nb,1) = 0; D(nn,:)=((C{nn}\temp)); end
Where A ,C are cell arrays storing Na number of sparse matrices-(NbxNb), B is a cell array storing Na vectors of Nbx1 size
I am finding that my above loop is faster when i use 'for' loop instead of 'parfor' loop. Does anyone know why? (assume that I am only intrested in the reason for-' the code being slower with parfor compared to for'.)
Thank you.
Best Answer