Changeset 5c990f1 in git for kernel/ring.cc
- Timestamp:
- Apr 3, 2009, 10:02:20 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 9660f5c48cc33240ba1f644718ebd3f554c48fff
- Parents:
- 5ff25a34cd1c8aae9be47c0a88b1fc0d92845df1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ring.cc
r5ff25a3 r5c990f1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.11 5 2009-03-30 09:03:08 SingularExp $ */4 /* $Id: ring.cc,v 1.116 2009-04-03 20:02:20 motsak Exp $ */ 5 5 6 6 /* … … 4390 4390 { 4391 4391 if (src == NULL) return(NULL); 4392 4393 #ifdef RDEBUG 4394 rTest(src); 4395 #endif 4396 4392 4397 ring save = currRing; 4393 4398 rChangeCurrRing(src); 4394 4399 4395 ring r = rCopy0(src,TRUE); /* TRUE for copy the qideal */ 4400 #ifdef RDEBUG 4401 rTest(src); 4402 // rWrite(src); 4403 // rDebugPrint(src); 4404 #endif 4405 4406 4407 // ring r = rCopy0(src,TRUE); /* TRUE for copy the qideal: Why??? */ 4408 ring r = rCopy0(src,FALSE); /* qideal will be deleted later on!!! */ 4409 4396 4410 /* rChangeCurrRing(r); */ 4397 4411 // change vars v1..vN -> vN..v1 … … 4605 4619 4606 4620 #ifdef RDEBUG 4607 // rDebugPrint(r);4608 4621 rTest(r); 4609 4622 #endif … … 4611 4624 rChangeCurrRing(r); 4612 4625 4626 #ifdef RDEBUG 4627 rTest(r); 4628 // rWrite(r); 4629 // rDebugPrint(r); 4630 #endif 4631 4632 4613 4633 #ifdef HAVE_PLURAL 4614 4634 // now, we initialize a non-comm structure on r … … 4647 4667 idTest((ideal)D); 4648 4668 4649 if (nc_CallPlural(C, D, NULL, NULL, r, false, false, true, r)) 4669 if (nc_CallPlural(C, D, NULL, NULL, r, false, false, true, r)) // no qring setup! 4650 4670 WarnS("Error initializing non-commutative multiplication!"); 4651 4671 4672 4673 #ifdef RDEBUG 4674 rTest(r); 4675 // rWrite(r); 4676 // rDebugPrint(r); 4677 #endif 4678 4652 4679 assume( r->GetNC()->IsSkewConstant == src->GetNC()->IsSkewConstant); 4653 assume( ncRingType(r) == ncRingType(src) );4654 4680 4655 4681 omFreeSize((ADDRESS)perm,(rVar(r)+1)*sizeof(int)); 4656 4657 rChangeCurrRing(save);4658 4682 4659 4683 } … … 4665 4689 { 4666 4690 idDelete(&(r->qideal)); 4691 4667 4692 #ifdef HAVE_PLURAL 4668 r->qideal = idOppose(src, src->qideal); 4693 r->qideal = idOppose(src, src->qideal); // into the currRing: r 4669 4694 #else 4670 r->qideal = id Copy( src->qideal);4695 r->qideal = id_Copy(src->qideal, currRing); // ? 4671 4696 #endif 4672 4697 … … 4674 4699 #ifdef HAVE_PLURAL 4675 4700 if( rIsPluralRing(r) ) 4701 { 4676 4702 nc_SetupQuotient(r); 4677 #endif 4678 } 4679 4703 4704 #ifdef RDEBUG 4705 rTest(r); 4706 // rWrite(r); 4707 // rDebugPrint(r); 4708 #endif 4709 } 4710 4711 #endif 4712 } 4713 4714 4715 #ifdef HAVE_PLURAL 4716 if( rIsPluralRing(r) ) 4717 assume( ncRingType(r) == ncRingType(src) ); 4718 #endif 4719 4720 4680 4721 rTest(r); 4681 4722
Note: See TracChangeset
for help on using the changeset viewer.