Changeset 26b68f in git for kernel/ring.cc
- Timestamp:
- Mar 5, 2010, 2:02:28 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 78efe9f25ea57c6afdfe8736b026e6d074a3d9d3
- Parents:
- c1f5e3cc27d7059b5f61b1805f24638a0836a299
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ring.cc
rc1f5e3c r26b68f 381 381 #ifndef NDEBUG 382 382 if(r->block0[l] == 0 ) 383 Print ("::prefix");383 PrintS("::prefix"); 384 384 else 385 385 Print("::suffix (sign: %d)", r->block0[l]); … … 445 445 Print("\n// %s%s=",r->names[j-1],r->names[i-1]); 446 446 pl = MATELEM(r->GetNC()->MT[UPMATELEM(i,j,r->N)],1,1); 447 p_Write0(pl, r ->GetNC()->basering, r->GetNC()->basering);447 p_Write0(pl, r, r); 448 448 } 449 449 } … … 454 454 Print("\n// noncommutative type:%d", (int)ncRingType(r)); 455 455 Print("\n// is skew constant:%d",r->GetNC()->IsSkewConstant); 456 Print("\n// ncref:%d",r->GetNC()->ref);457 Print("\n// commref:%d",r->ref);458 Print("\n// baseref:%d",r->GetNC()->basering->ref);459 456 if( rIsSCA(r) ) 460 457 { … … 1700 1697 } 1701 1698 //memset: else res->qideal = NULL; 1702 #ifdef HAVE_PLURAL1703 1699 //memset: res->GetNC() = NULL; // copy is purely commutative!!! 1704 // if (rIsPluralRing(r))1705 // nc_rCopy0(res, r); // is this correct??? imho: no!1706 #endif1707 1700 return res; 1708 1701 } … … 4034 4027 // for( int k = 0; k <= r->N; k++) if (r->typ[j].data.is.pVarOffset[k] != -1) Print("[%2d]: %04x; ", k, r->typ[j].data.is.pVarOffset[k]); 4035 4028 4036 Print(" limit %d\n",r->typ[j].data.is.limit); 4029 Print(" limit %d\n",r->typ[j].data.is.limit); 4037 4030 #ifndef NDEBUG 4038 4031 PrintS(" F: ");idShow(r->typ[j].data.is.F, r, r, 1); … … 4214 4207 p_DebugPrint(F->m[j], r, r, 0); 4215 4208 #endif 4216 4209 4217 4210 for( poly p = F->m[j]; p != NULL; pIter(p) ) 4218 { 4211 { 4219 4212 int c = p_GetComp(p, r); 4220 4213 4221 4214 if( c > MIN ) 4222 4215 { 4223 #ifdef PDEBUG 4216 #ifdef PDEBUG 4224 4217 Print("gen[%d] -> gen(%d)\n", c, MIN + (*V)[ c - MIN - 1 ]); 4225 4218 #endif 4226 4219 4227 4220 p_SetComp( p, MIN + (*V)[ c - MIN - 1 ], r ); 4228 4221 } 4229 4222 } 4230 #ifdef PDEBUG 4223 #ifdef PDEBUG 4231 4224 Print("new F[%d]:", j); 4232 4225 p_Test(F->m[j], r); … … 4301 4294 rDebugPrint(currRing); 4302 4295 #endif 4303 Print S("\n");4296 PrintLn(); 4304 4297 #endif 4305 4298 … … 4317 4310 rDebugPrint(currRing); 4318 4311 #endif 4319 Print S("\n");4312 PrintLn(); 4320 4313 #endif 4321 4314 } … … 4383 4376 rDebugPrint(r); 4384 4377 #endif 4385 Print S("\n");4378 PrintLn(); 4386 4379 #endif 4387 4380 #endif … … 4418 4411 rDebugPrint(r); 4419 4412 #endif 4420 Print S("\n");4413 PrintLn(); 4421 4414 #endif 4422 4415 … … 4748 4741 res->OrdSgn = 1; 4749 4742 rComplete(res, 1); 4743 #ifdef HAVE_PLURAL 4744 if (rIsPluralRing(r)) 4745 { 4746 if ( nc_rComplete(r, res, false) ) // no qideal! 4747 { 4748 #ifndef NDEBUG 4749 WarnS("error in nc_rComplete"); 4750 #endif 4751 } 4752 } 4753 #endif 4750 4754 rChangeCurrRing(res); 4751 4755 return res; … … 4762 4766 rDebugPrint(r); 4763 4767 #endif 4764 Print S("\n");4768 PrintLn(); 4765 4769 #endif 4766 4770 … … 4824 4828 rDebugPrint(res); 4825 4829 #endif 4826 PrintS("\n"); 4827 #endif 4828 4829 4830 PrintLn(); 4831 #endif 4830 4832 4831 4833 #ifdef HAVE_PLURAL … … 4852 4854 rDebugPrint(res); 4853 4855 #endif 4854 PrintS("\n"); 4855 #endif 4856 #endif 4857 4856 PrintLn(); 4857 #endif 4858 #endif 4858 4859 4859 4860 if (r->qideal!=NULL) … … 4884 4885 return res; 4885 4886 } 4886 4887 4888 4889 4890 4887 4891 4888 ring rCurrRingAssure_dp_S() … … 5110 5107 if (rField_is_Ring_PtoM(r)) return n_Zpn; 5111 5108 if (rField_is_Ring_2toM(r)) return n_Z2n; 5112 #endif 5109 #endif 5113 5110 5114 5111 return n_unknown; … … 5541 5538 rChangeCurrRing(dest); 5542 5539 5543 const ring srcBase = src ->GetNC()->basering;5540 const ring srcBase = src; 5544 5541 5545 5542 assume( nSetMap(srcBase) == nSetMap(currRing) ); // currRing is important here!
Note: See TracChangeset
for help on using the changeset viewer.