How quickly calculate distances arrays etc.

This is an array of quotients, on the diagonal must be zero. 
Are there any features that quickly count this type of arrays?

Data in F...

k=size(F,2);
O=zeros(k,k);
for o=0:k-2;
for i=1:k-1-o j=i+1+o;
O[i,j]=sum(F[:,i])/sum(F[:,j]);
O[j,i]=1/O[i,j];
end;
end;

Paul

Reply via email to