Changeset 009d80 in git for kernel/kspoly.cc
- Timestamp:
- May 10, 2007, 10:12:44 AM (16 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 4cd2f891f36b9e1d58f0aeaa4683254f54088298
- Parents:
- 4bebba7353438f052b4ad581ede34fa6f31e5a71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kspoly.cc
r4bebba r009d80 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kspoly.cc,v 1. 9 2007-02-07 10:49:40 SingularExp $ */4 /* $Id: kspoly.cc,v 1.10 2007-05-10 08:12:40 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT - Routines for Spoly creation and reductions … … 213 213 else 214 214 a2 = tailRing->p_Procs->pp_Mult_mm(a2, m2, tailRing,last); 215 #ifdef HAVE_RING 2TOM216 if ( currRing->cring == 1) l2 = pLength(a2);215 #ifdef HAVE_RINGS 216 if (rField_is_Ring(currRing)) l2 = pLength(a2); 217 217 #endif 218 218 … … 350 350 BOOLEAN equal; 351 351 352 #ifdef HAVE_RING 2TOM352 #ifdef HAVE_RINGS 353 353 number lc1 = pGetCoeff(p1), lc2 = pGetCoeff(p2); 354 354 int ct = ksCheckCoeff(&lc1, &lc2); // gcd and zero divisors 355 if ( currRing->cring == 1)355 if (rField_is_Ring(currRing)) 356 356 { 357 357 if (a1 != NULL) t2 = nMult(pGetCoeff(a1),lc2); … … 397 397 } 398 398 p_Setm(m2, currRing); 399 #ifdef HAVE_RING 2TOM400 if ( currRing->cring == 1)399 #ifdef HAVE_RINGS 400 if (rField_is_Ring(currRing)) 401 401 pSetCoeff(m2, t1); 402 402 else … … 433 433 } 434 434 p_Setm(m1, currRing); 435 #ifdef HAVE_RING 2TOM436 if (currRing->cring == 1)435 #ifdef HAVE_RINGS 436 if (rField_is_Ring(currRing)) 437 437 pSetCoeff(m1, t2); 438 438 else … … 485 485 { 486 486 p_LmFree(m2,currRing); 487 #ifdef HAVE_RING 2TOM488 if ( currRing->cring == 1)487 #ifdef HAVE_RINGS 488 if (rField_is_Ring(currRing)) 489 489 pSetCoeff(m1, t2); 490 490 else … … 496 496 { 497 497 p_LmFree(m1,currRing); 498 #ifdef HAVE_RING 2TOM499 if ( currRing->cring == 1)498 #ifdef HAVE_RINGS 499 if (rField_is_Ring(currRing)) 500 500 pSetCoeff(m2, t1); 501 501 else … … 505 505 } 506 506 } 507 #ifdef HAVE_RING 2TOM508 if ( currRing->cring == 1)507 #ifdef HAVE_RINGS 508 if (rField_is_Ring(currRing)) 509 509 { 510 510 t1 = nSub(t1, t2); … … 524 524 { 525 525 p_LmFree(m2,currRing); 526 #ifdef HAVE_RING 2TOM527 if ( currRing->cring == 1)526 #ifdef HAVE_RINGS 527 if (rField_is_Ring(currRing)) 528 528 pSetCoeff(m1, t1); 529 529 else … … 534 534 pIter(a1); 535 535 pIter(a2); 536 #ifdef HAVE_RING 2TOM537 if ( currRing->cring == 1)536 #ifdef HAVE_RINGS 537 if (rField_is_Ring(currRing)) 538 538 { 539 539 nDelete(&t1);
Note: See TracChangeset
for help on using the changeset viewer.