Changeset b34096 in git for kernel/ideals.cc


Ignore:
Timestamp:
May 18, 2005, 5:42:57 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
f43a748a3efbe2dca88a3a3642859497e497923e
Parents:
5fe545a76fa698e9fbf6c3bfdbbe9a52002911e4
Message:
*hannes: fix weights for 0-module


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

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    r5fe545 rb34096  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.12 2005-05-13 15:18:52 Singular Exp $ */
     4/* $Id: ideals.cc,v 1.13 2005-05-18 15:42:57 Singular Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    36043604    if ((w !=NULL)&&(*w!=NULL))
    36053605    {
    3606       intvec *wtmp=new intvec((*w)->length()-1);
    3607       int i;
    3608       for(i=0;i<next_comp-1;i++) (*wtmp)[i]=(**w)[i];
    3609       for(i=next_comp;i<(*w)->length();i++) (*wtmp)[i-1]=(**w)[i];
     3606      intvec *wtmp;
     3607      if ((*w)->length()==1)
     3608      {
     3609        wtmp=new intvec(1);
     3610        // (*wtmp)[0]=0;
     3611      }
     3612      else
     3613      {
     3614        wtmp=new intvec((*w)->length()-1);
     3615        int i;
     3616        for(i=0;i<next_comp-1;i++) (*wtmp)[i]=(**w)[i];
     3617        for(i=next_comp;i<(*w)->length();i++) (*wtmp)[i-1]=(**w)[i];
     3618      }
    36103619      delete *w;
    36113620      *w=wtmp;
Note: See TracChangeset for help on using the changeset viewer.