Changeset b34096 in git for kernel/ideals.cc
- Timestamp:
- May 18, 2005, 5:42:57 PM (19 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- f43a748a3efbe2dca88a3a3642859497e497923e
- Parents:
- 5fe545a76fa698e9fbf6c3bfdbbe9a52002911e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r5fe545 rb34096 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.1 2 2005-05-13 15:18:52Singular Exp $ */4 /* $Id: ideals.cc,v 1.13 2005-05-18 15:42:57 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 3604 3604 if ((w !=NULL)&&(*w!=NULL)) 3605 3605 { 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 } 3610 3619 delete *w; 3611 3620 *w=wtmp;
Note: See TracChangeset
for help on using the changeset viewer.