void trans(double*dt,int n){int i,j,w;for(i=0;i++:i<n)for(j=i+1;j++;j<n){
w=dt[n*i+j];dt[n*i+j]=dt[n*j+i];dt[n*j+i]=w;}}