Changeset f43a74 in git for Singular/ipassign.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/ipassign.cc

    rb34096 rf43a74  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.74 2005-05-03 16:12:03 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.75 2005-05-18 15:59:35 Singular Exp $ */
    55
    66/*
     
    291291  syStrategy r=(syStrategy)a->CopyD(RESOLUTION_CMD);
    292292  if (res->data!=NULL) ((lists)res->data)->Clean();
    293   res->data=(void *)syConvRes(r,TRUE);
     293  int add_row_shift = 0;
     294  intvec *weights=(intvec*)atGet(a,"isHomog",INTVEC_CMD);
     295  if (weights!=NULL)  add_row_shift=weights->min_in();
     296  res->data=(void *)syConvRes(r,TRUE,add_row_shift);
    294297  //jiAssignAttr(res,a);
    295298  return FALSE;
     
    343346    if ((p!=NULL) && (pGetComp(p)!=0))
    344347    {
    345       m->rank=max(m->rank,pMaxComp(p));
     348      m->rank=si_max(m->rank,pMaxComp(p));
    346349    }
    347350  }
     
    973976    {
    974977      intvec *ivv = (intvec *)(hh->Data());
    975       int ll = 0,l = min(ivv->length(),iv->length());
     978      int ll = 0,l = si_min(ivv->length(),iv->length());
    976979      for (; l>0; l--)
    977980      {
     
    14631466            lm->m[i]=(poly)t.CopyD(etyp);
    14641467            pNormalize(lm->m[i]);
    1465             if (module_assign) rk=max(rk,pMaxComp(lm->m[i]));
     1468            if (module_assign) rk=si_max(rk,pMaxComp(lm->m[i]));
    14661469            i++;
    14671470          }
     
    14751478            if (module_assign)
    14761479            {
    1477               j = min(num,rm->cols());
    1478               rk=max(rk,rm->rank);
     1480              j = si_min(num,rm->cols());
     1481              rk=si_max(rk,rm->rank);
    14791482            }
    14801483            else
    1481               j = min(num-i,rm->rows() * rm->cols());
     1484              j = si_min(num-i,rm->rows() * rm->cols());
    14821485            for(k=0;k<j;k++,i++)
    14831486            {
Note: See TracChangeset for help on using the changeset viewer.