Changeset f43a74 in git for Singular/lists.cc


Ignore:
Timestamp:
May 18, 2005, 5:59:37 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
42f5a8bf6b4c7bed01fc4375213acbce2abcfe04
Parents:
b340969c053d9f828187f38bac97b1feb96e654e
Message:
*hannes: new lib: sheafcohom.lib
         weight stuff
         load stuff


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

Legend:

Unmodified
Added
Removed
  • Singular/lists.cc

    rb34096 rf43a74  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: lists.cc,v 1.26 2005-01-18 15:42:00 Singular Exp $ */
     4/* $Id: lists.cc,v 1.27 2005-05-18 15:59:36 Singular Exp $ */
    55/*
    66* ABSTRACT: handling of the list type
     
    8282    return NULL;
    8383  lists l=(lists) omAllocBin(slists_bin);
    84   l->Init(max(ul->nr+2,pos+1));
     84  l->Init(si_max(ul->nr+2,pos+1));
    8585  int i,j;
    8686
     
    200200
    201201lists liMakeResolv(resolvente r, int length, int reallen,
    202   int typ0, intvec ** weights)
     202  int typ0, intvec ** weights, int add_row_shift)
    203203{
    204204  lists L=(lists)omAlloc0Bin(slists_bin);
     
    213213    while (r[length-1]==NULL) length--;
    214214    if (reallen<=0) reallen=pVariables;
    215     reallen=max(reallen,length);
     215    reallen=si_max(reallen,length);
    216216    L->Init(reallen);
    217217    int i=0;
     
    244244          else
    245245          {
    246             r[i]->rank=max(rank,idRankFreeModule(r[i]));
     246            r[i]->rank=si_max(rank,idRankFreeModule(r[i]));
    247247          }
    248248          idSkipZeroes(r[i]);
     
    251251        if ((weights!=NULL) && (weights[i]!=NULL))
    252252        {
    253           atSet((idhdl)&L->m[i],omStrDup("isHomog"),weights[i],INTVEC_CMD);
     253          intvec *w=ivCopy(weights[i]);
     254          w += add_row_shift;
     255          atSet((idhdl)&L->m[i],omStrDup("isHomog"),w,INTVEC_CMD);
    254256          weights[i] = NULL;
    255257        }
Note: See TracChangeset for help on using the changeset viewer.