[BACK]Return to weight CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / lib

Diff for /OpenXM_contrib2/asir2000/lib/weight between version 1.27 and 1.30

version 1.27, 2004/01/10 14:47:01 version 1.30, 2004/01/14 09:29:39
Line 313  def makeret(Res,Vars,FLAG){
Line 313  def makeret(Res,Vars,FLAG){
   
         ResVec=newvect(ResNum)$          ResVec=newvect(ResNum)$
   
         for(M=0,I=0;I<ResNum;I++){          if(FLAG)
                   M=0$
           else
                   M=-1$
   
           for(I=0;I<ResNum;I++){
                 if(member(Res[I][0],Vars)){                  if(member(Res[I][0],Vars)){
                         ResVec[I]=Res[I][1]$                          ResVec[I]=Res[I][1]$
   
                         if(FLAG && type(ResVec[I])==1){                          if(FLAG){
                                 if(M==0)                                  if(type(ResVec[I])==1){
                                         M=ResVec[I]$                                          if(M==0)
                                 else                                                  M=ResVec[I]$
                                         if(ResVec[I]<M)                                          else
                                                 M=ResVec[I]$                                                  if(ResVec[I]<M)
                         }                                                          M=ResVec[I]$
                 }                                  }
                                   else
                                           M=-1$
                           }
                   }
         }          }
   
         if(M!=0)  
           if(M!=-1)
                 ResVec=ResVec/M;                  ResVec=ResVec/M;
   
         RET=newvect(VarsNum,Vars)$          RET=newvect(VarsNum,Vars)$
Line 622  def leastsq(NormMat,ExpMat,Vars,FLAG,ID){
Line 632  def leastsq(NormMat,ExpMat,Vars,FLAG,ID){
                                                 TMP=map(subst,TMP,TMP0[I][0],TMP0[I][1])$                                                  TMP=map(subst,TMP,TMP0[I][0],TMP0[I][1])$
                                         RET0=value2(Vars,TMP)$                                          RET0=value2(Vars,TMP)$
                                         if(RET0!=[])                                          if(RET0!=[])
                                                 RET0=wsort(RET0,Vars,RET0,1/10)$                                                  RET0=wsort(RET0,Vars,RET0,ID+1/10)$
                                 }                                  }
   
                                 TMP=vtol(TMP1[1])$                                  TMP=vtol(TMP1[1])$
Line 633  def leastsq(NormMat,ExpMat,Vars,FLAG,ID){
Line 643  def leastsq(NormMat,ExpMat,Vars,FLAG,ID){
                                         RET0=value2(Vars,TMP)$                                          RET0=value2(Vars,TMP)$
   
                                         if(RET0!=[])                                          if(RET0!=[])
                                                 RET0=wsort(RET0,Vars,RET0,1/10)$                                                  RET0=wsort(RET0,Vars,RET0,ID+1/10)$
                                 }                                  }
   
                                 RET=append(RET,RET0)$                                  RET=append(RET,RET0)$
Line 696  def unitweight(ExpMat,Vars,PolyListNum,OneMat,FLAG){
Line 706  def unitweight(ExpMat,Vars,PolyListNum,OneMat,FLAG){
   
         if(jacobi(ExtMatColNum,NormMat1,WorkMat)){          if(jacobi(ExtMatColNum,NormMat1,WorkMat)){
   
                 Res=newvect(ExpMatColNum)$                  Res=newvect(ExtMatColNum)$
                 for(I=0;I<ExpMatColNum;I++){                  for(I=0;I<ExtMatColNum;I++){
                         Res[I]=newvect(2)$                          Res[I]=newvect(2)$
                         Res[I][0]=Vars[I]$                          Res[I][0]=ExtVars[I]$
                         Res[I][1]=WorkMat[ExtMatColNum-1][I]$                          Res[I][1]=WorkMat[ExtMatColNum-1][I]$
                 }                  }
   

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.30

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>