Changeset 93ebe1 in git for kernel/kspoly.cc
- Timestamp:
- Jun 25, 2008, 1:27:31 PM (15 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- c0f7e2988b957111af5de1cc61d5db94117bbd43
- Parents:
- 50be61b82bf6629f723c7dfbd65a3a1d7e764ca6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kspoly.cc
r50be61 r93ebe1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kspoly.cc,v 1.1 4 2008-02-23 20:13:30 levandovExp $ */4 /* $Id: kspoly.cc,v 1.15 2008-06-25 11:27:31 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Routines for Spoly creation and reductions … … 228 228 a2 = tailRing->p_Procs->pp_Mult_mm(a2, m2, tailRing,last); 229 229 #ifdef HAVE_RINGS 230 if ( rField_is_Ring(currRing) &&!(rField_is_Domain(currRing))) l2 = pLength(a2);230 if (!(rField_is_Domain(currRing))) l2 = pLength(a2); 231 231 #endif 232 232 … … 365 365 366 366 #ifdef HAVE_RINGS 367 BOOLEAN is_Ring=rField_is_Ring(currRing); 367 368 number lc1 = pGetCoeff(p1), lc2 = pGetCoeff(p2); 368 if ( rField_is_Ring(currRing))369 if (is_Ring) 369 370 { 370 371 ksCheckCoeff(&lc1, &lc2); // gcd and zero divisors … … 414 415 p_Setm(m2, currRing); 415 416 #ifdef HAVE_RINGS 416 if ( rField_is_Ring(currRing))417 if (is_Ring) 417 418 { 418 419 nDelete(&lc1); … … 429 430 { 430 431 #ifdef HAVE_RINGS 431 if ( rField_is_Ring(currRing))432 if (is_Ring) 432 433 { 433 434 nDelete(&lc1); … … 466 467 p_Setm(m1, currRing); 467 468 #ifdef HAVE_RINGS 468 if ( rField_is_Ring(currRing))469 if (is_Ring) 469 470 { 470 471 pSetCoeff0(m1, t2); … … 523 524 p_LmFree(m2,currRing); 524 525 #ifdef HAVE_RINGS 525 if ( rField_is_Ring(currRing))526 if (is_Ring) 526 527 { 527 528 pSetCoeff0(m1, t2); … … 539 540 p_LmFree(m1,currRing); 540 541 #ifdef HAVE_RINGS 541 if ( rField_is_Ring(currRing))542 if (is_Ring) 542 543 { 543 544 pSetCoeff0(m2, t1); … … 553 554 } 554 555 #ifdef HAVE_RINGS 555 if ( rField_is_Ring(currRing))556 if (is_Ring) 556 557 { 557 558 equal = nEqual(t1,t2); … … 570 571 p_LmFree(m2,currRing); 571 572 #ifdef HAVE_RINGS 572 if ( rField_is_Ring(currRing))573 if (is_Ring) 573 574 { 574 575 pSetCoeff0(m1, nSub(t1, t2)); … … 586 587 pIter(a2); 587 588 #ifdef HAVE_RINGS 588 if ( rField_is_Ring(currRing))589 if (is_Ring) 589 590 { 590 591 if (a2 != NULL) … … 598 599 t2 = nMult(pGetCoeff(a1),lc2); 599 600 } 600 while ( a1 != NULL&& nIsZero(t2))601 while ((a1 != NULL) && nIsZero(t2)) 601 602 { 602 603 pIter(a1); … … 607 608 } 608 609 } 609 while ( a2 != NULL&& nIsZero(t1))610 while ((a2 != NULL) && nIsZero(t1)) 610 611 { 611 612 pIter(a2); … … 624 625 { 625 626 #ifdef HAVE_RINGS 626 if ( rField_is_Ring(currRing))627 if (is_Ring) 627 628 { 628 629 nDelete(&lc1);
Note: See TracChangeset
for help on using the changeset viewer.