Changeset d02c1b in git for Singular/iparith.cc
- Timestamp:
- Feb 9, 2010, 5:47:59 PM (14 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- a477f80136c773f8acffd73512f53bf88a7c6fe8
- Parents:
- 2769328849b7f094014fdd9f4f080aad9cdd943d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r276932 rd02c1b 2675 2675 intvec *iv=(intvec *)v->Data(); 2676 2676 poly p=pOne(); 2677 int i; 2677 int i,e; 2678 BOOLEAN err=FALSE; 2678 2679 for(i=si_min(pVariables,iv->length()); i>0; i--) 2679 2680 { 2680 pSetExp(p,i,(*iv)[i-1]); 2681 e=(*iv)[i-1]; 2682 if (e>=0) pSetExp(p,i,e); 2683 else err=TRUE; 2681 2684 } 2682 2685 if (iv->length()==(pVariables+1)) 2683 2686 { 2684 2687 res->rtyp=VECTOR_CMD; 2685 pSetComp(p,(*iv)[pVariables]); 2688 e=(*iv)[pVariables]; 2689 if (e>=0) pSetComp(p,e); 2690 else err=TRUE; 2686 2691 } 2687 2692 pSetm(p); 2688 2693 res->data=(char*)p; 2689 return FALSE; 2694 if(err) { pDelete(&p); WerrorS("no negative exponent allowed"); } 2695 return err; 2690 2696 } 2691 2697 static BOOLEAN jjPARSTR2(leftv res, leftv u, leftv v)
Note: See TracChangeset
for help on using the changeset viewer.