Changeset fca547 in git for Singular/syz1.cc


Ignore:
Timestamp:
Apr 3, 1998, 7:38:45 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5480dab448af565abfd5b8f28e1766de56df7613
Parents:
36ff0ee47861d9c243c573d5f915206fde045c9b
Message:
*** empty log message ***


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

Legend:

Unmodified
Added
Removed
  • Singular/syz1.cc

    r36ff0ee rfca547  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz1.cc,v 1.23 1998-04-01 19:01:42 Singular Exp $ */
     4/* $Id: syz1.cc,v 1.24 1998-04-03 17:38:45 Singular Exp $ */
    55/*
    66* ABSTRACT: resolutions
     
    22652265  }
    22662266  Free((ADDRESS)fr,(result->length)*sizeof(ideal));
     2267  return result;
     2268}
     2269
     2270syStrategy syMakeResolution(resolvente r, int length,
     2271           intvec ** weights)
     2272{
     2273  syStrategy result=(syStrategy)Alloc0(sizeof(ssyStrategy));
     2274
     2275  length = max(length,0);
     2276  int i=0;
     2277 
     2278  while (i<length)
     2279  {
     2280    if (r[i]!=NULL)
     2281    {
     2282      if (i!=0)
     2283      {
     2284        int rank=IDELEMS(r[i-1]);
     2285        if (idIs0(r[i-1]))
     2286        {
     2287          idDelete(&(r[i]));
     2288          r[i]=idFreeModule(rank);
     2289        }
     2290        else
     2291        {
     2292          r[i]->rank=max(rank,idRankFreeModule(r[i]));
     2293        }
     2294        idSkipZeroes(r[i]);
     2295      }
     2296    }
     2297    else
     2298    {
     2299      // should not happen:
     2300      Warn("internal NULL in resolvente");
     2301      r[i]=idInit(1,1);
     2302    }
     2303    i++;
     2304  }
     2305  result->fullres = r;
     2306  result->length = length;
    22672307  return result;
    22682308}
Note: See TracChangeset for help on using the changeset viewer.