Changeset 094f80 in git
- Timestamp:
- Mar 10, 2009, 4:47:18 PM (14 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- eda41404503d654cd3e9dacc624c5bd1e77fdafb
- Parents:
- ec993c0195f4b63f7c55517888001aa19a6794ba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
rec993c0 r094f80 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.29 6 2009-02-21 19:30:56levandov Exp $ */4 /* $Id: extra.cc,v 1.297 2009-03-10 15:47:18 levandov Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 2676 2676 { 2677 2677 poly p,q; 2678 int is ;2679 if ((h!=NULL) && ( h->Typ()==POLY_CMD))2678 int is, htype; 2679 if ((h!=NULL) && ( (h->Typ()==POLY_CMD) || (h->Typ()==VECTOR_CMD) ) ) 2680 2680 { 2681 2681 p=(poly)h->CopyD(); 2682 2682 h=h->next; 2683 htype = h->Typ(); 2683 2684 } 2684 2685 else return TRUE; 2685 if ((h!=NULL) && ( h->Typ()==POLY_CMD))2686 if ((h!=NULL) && ( (h->Typ()==POLY_CMD) || (h->Typ()==VECTOR_CMD) ) ) 2686 2687 { 2687 2688 q=(poly)h->CopyD(); … … 2692 2693 { 2693 2694 is=(int)((long)(h->Data())); 2694 res->rtyp= POLY_CMD;2695 res->rtyp=htype; 2695 2696 // res->rtyp=IDEAL_CMD; 2696 2697 if (rIsPluralRing(currRing)) -
kernel/gr_kstd2.cc
rec993c0 r094f80 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: gr_kstd2.cc,v 1.3 6 2009-02-27 19:30:47 levandov Exp $ */4 /* $Id: gr_kstd2.cc,v 1.37 2009-03-10 15:47:17 levandov Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: noncomm. alg. of Buchberger … … 306 306 if(TEST_OPT_DEBUG) 307 307 { 308 p_wrp(h->p,currRing); Print(" divisibl yby S[%d]=",j);308 p_wrp(h->p,currRing); Print(" divisible by S[%d]=",j); 309 309 p_wrp(strat->S[j],currRing); PrintS(" e=-1\n"); 310 310 } -
kernel/ratgring.cc
rec993c0 r094f80 7 7 * Author: levandov (Viktor Levandovsky) 8 8 * Created: 8/00 - 11/00 9 * Version: $Id: ratgring.cc,v 1.2 3 2009-02-27 19:30:47levandov Exp $9 * Version: $Id: ratgring.cc,v 1.24 2009-03-10 15:47:18 levandov Exp $ 10 10 *******************************************************************/ 11 11 #include "mod2.h" … … 92 92 if (q == NULL) return p; 93 93 poly res = p_Head(p,r); 94 while ( (q!=NULL) && (p_Comp_k_n(p, q, ishift+1, r))) 94 const long cmp = p_GetComp(p, r); 95 while ( (q!=NULL) && (p_Comp_k_n(p, q, ishift+1, r)) && (p_GetComp(q, r) == cmp) ) 95 96 { 96 97 res = p_Add_q(res,p_Head(q,r),r); 97 98 q = pNext(q); 98 99 } 100 p_SetCompP(res,cmp,r); 99 101 return res; 100 102 } 101 103 102 104 /* returns x-coeff of p, i.e. a poly in x, s.t. corresponding xd-monomials 103 have the same D-part 105 have the same D-part and the component 0 104 106 does not destroy p 105 107 */ … … 112 114 p_SetCoeff(res,n_Copy(p_GetCoeff(p,r),r),r); 113 115 poly s; 114 while ((q!= NULL) && (p_Comp_k_n(p, q, ishift+1, r))) 116 long cmp = p_GetComp(p, r); 117 while ( (q!= NULL) && (p_Comp_k_n(p, q, ishift+1, r)) && (p_GetComp(q, r) == cmp) ) 115 118 { 116 119 s = p_GetExp_k_n(q, ishift+1, r->N, r); … … 119 122 q = pNext(q); 120 123 } 124 cmp = 0; 125 p_SetCompP(res,cmp,r); 121 126 return res; 122 127 } … … 128 133 p_LmCheckPolyRing2(*p, r); 129 134 poly q = p_Head(*p,r); 130 while ( ( (*p)!=NULL ) && ( p_Comp_k_n(*p, q, ishift+1, r) )) 135 const long cmp = p_GetComp(*p, r); 136 while ( ( (*p)!=NULL ) && ( p_Comp_k_n(*p, q, ishift+1, r) ) && (p_GetComp(*p, r) == cmp) ) 131 137 { 132 138 p_LmDelete(p,r);
Note: See TracChangeset
for help on using the changeset viewer.