Changeset 8c8c80 in git


Ignore:
Timestamp:
Apr 21, 2005, 6:25:28 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
6da9757a9ddb8e1b1cfef46b28b9d316d6c9bc75
Parents:
ea68edeac3df1990933790c9755d504d57154323
Message:
*hannes: ...


git-svn-id: file:///usr/local/Singular/svn/trunk@7860 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/gring.cc

    rea68ed r8c8c80  
    77 *  Author:  levandov (Viktor Levandovsky)
    88 *  Created: 8/00 - 11/00
    9  *  Version: $Id: gring.cc,v 1.22 2005-04-21 16:16:45 levandov Exp $
     9 *  Version: $Id: gring.cc,v 1.23 2005-04-21 16:25:28 Singular Exp $
    1010 *******************************************************************/
    1111#include "mod2.h"
     
    19651965  }
    19661966  int i,j;
    1967   r->nc->MT = (matrix *)omAlloc0(r->N*(r->N-1)/2*sizeof(matrix));
    1968   r->nc->MTsize = (int *)omAlloc0(r->N*(r->N-1)/2*sizeof(int));
     1967  r->nc->MT = (matrix *)omAlloc0((r->N*(r->N-1))/2*sizeof(matrix));
     1968  r->nc->MTsize = (int *)omAlloc0((r->N*(r->N-1))/2*sizeof(int));
     1969  idTest(((ideal)r->nc->C));
    19691970  matrix COM = mpCopy(r->nc->C);
    19701971  poly p,q;
     
    19881989        IsNonComm = 1;
    19891990        p_Delete(&(MATELEM(COM,i,j)),r);
    1990         MATELEM(COM,i,j) = NULL;
     1991        //MATELEM(COM,i,j) = NULL; // done by p_Delete
    19911992        r->nc->MTsize[UPMATELEM(i,j,r->N)] = DefMTsize; /* default sizes */
    19921993        r->nc->MT[UPMATELEM(i,j,r->N)] = mpNew(DefMTsize, DefMTsize);
     
    19941995      /* set MT[i,j,1,1] to c_i_j*x_i*x_j + D_i_j */
    19951996      p = p_ISet(1,r); /* instead of     p = pOne(); */
    1996       p_SetCoeff(p,nCopy(pGetCoeff(MATELEM(r->nc->C,i,j))),r);
     1997      p_SetCoeff(p,n_Copy(pGetCoeff(MATELEM(r->nc->C,i,j)),r),r);
    19971998      p_SetExp(p,i,1,r);
    19981999      p_SetExp(p,j,1,r);
     
    20022003      MATELEM(r->nc->MT[UPMATELEM(i,j,r->N)],1,1) = nc_p_CopyPut(p,r);
    20032004      p_Delete(&p,r);
    2004       p = NULL;
     2005      // p = NULL;// done by p_Delete
    20052006    }
    20062007  }
Note: See TracChangeset for help on using the changeset viewer.