sum(czerw_rot[j;:].*Z[i;:]) can be calculated faster with dot
(vec(czerw_rot[j;:]),vec(Z[i;:])) but I guess that you can just do

F = Z*czerw_rot'


2014/1/9 paul analyst <[email protected]>

> Is it possible to calculate the sum of the products of vectors faster?
> without the loop?
>
> (k,l)=size(Z);
> (m,n)=size(czerw_rot);
> F=zeros(k,m);println("stworzyl pusta F");
> tic();
> for j=1:m, i=1:k;
>     F[i,j]=sum(czerw_rot[j;:].*Z[i;:]);
> end;
>
> Z is very big  ..
>
> Paul
>



-- 
Med venlig hilsen

Andreas Noack Jensen

Reply via email to