Changeset e78cce in git for Singular/hilb.cc


Ignore:
Timestamp:
Dec 15, 1997, 11:46:43 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
74eea4ee278a222b9c9e93f5041d06fdec86d467
Parents:
3bc8cd5aedd9efcc75f287571cd2f05f49911c72
Message:
Mon Dec 15 23:31:56 1997  Olaf Bachmann
<obachman@mathematik.uni-kl.de>

	* polys-impl.h: Various small bug - fixes and changes in
	  preparation of COMP_FAST merge: hilbert series, maps are
	  ok; sres and syz are still buggy; small things still need to
	  be checked;


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

Legend:

Unmodified
Added
Removed
  • Singular/hilb.cc

    r3bc8cd re78cce  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hilb.cc,v 1.6 1997-11-25 15:29:21 pohl Exp $ */
     4/* $Id: hilb.cc,v 1.7 1997-12-15 22:46:24 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Hilbert series
     
    125125{
    126126  int  iv = Nvar -1, ln, a, a0, a1, b, i;
    127   short  x, x0;
     127  Exponent_t  x, x0;
    128128  scmon pn;
    129129  scfmon sn;
     
    193193{
    194194  intvec *work, *hseries1=NULL;
    195   short  mc;
     195  Exponent_t  mc;
    196196  int  *p0;
    197197  int  i, j, k, l, ii, mw;
     
    208208  hwork = (scfmon)Alloc(hNexist * sizeof(scmon));
    209209  hvar = (varset)Alloc((pVariables + 1) * sizeof(int));
    210   hpure = (scmon)Alloc((1 + (pVariables * pVariables)) * sizeof(short));
     210  hpure = (scmon)Alloc((1 + (pVariables * pVariables)) * sizeof(Exponent_t));
    211211  stcmem = hCreate(pVariables - 1);
    212212  Qpol = (int **)Alloc((pVariables + 1) * sizeof(int *));
     
    248248          hOrdSupp(hstc, hNstc, hvar, hNvar);
    249249        hHilbEst(hstc, hNstc, hvar, hNvar);
    250         memset(hpure, 0, (pVariables + 1) * sizeof(short));
     250        memset(hpure, 0, (pVariables + 1) * sizeof(Exponent_t));
    251251        hPure(hstc, 0, &hNstc, hvar, hNvar, hpure, &hNpure);
    252252        hLexS(hstc, hNstc, hvar, hNvar);
     
    324324  Free((ADDRESS)Qpol, (pVariables + 1) * sizeof(int *));
    325325  hKill(stcmem, pVariables - 1);
    326   Free((ADDRESS)hpure, (1 + (pVariables * pVariables)) * sizeof(short));
     326  Free((ADDRESS)hpure, (1 + (pVariables * pVariables)) * sizeof(Exponent_t));
    327327  Free((ADDRESS)hvar, (pVariables + 1) * sizeof(int));
    328328  Free((ADDRESS)hwork, hNexist * sizeof(scmon));
    329   Free((ADDRESS)hexist, hNexist * sizeof(scmon));
     329  hDelete(hexist, hNexist);
    330330  Free((ADDRESS)p0, sizeof(int));
    331331  if (hisModule!=0)
Note: See TracChangeset for help on using the changeset viewer.