Changeset 2dac63 in git
- Timestamp:
- Jul 21, 2021, 10:42:36 PM (3 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6fcc76c21a327463abe6861bd1dfc1e50d337b16
- Parents:
- 3028b1af3cce625ab8f0a52d2573c868e76f17f0
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/fglm.cc
r3028b1 r2dac63 124 124 FglmState state= FglmOk; 125 125 126 if ( rChar(sring) != rChar(dring))126 if ( sring->cf != dring->cf ) 127 127 { 128 128 WerrorS( "rings must have same characteristic" ); -
kernel/groebner_walk/walkProc.cc
r3028b1 r2dac63 56 56 WalkState state= WalkOk; 57 57 58 if ( rChar(sring) != rChar(dring))58 if ( sring->cf != dring->cf ) 59 59 { 60 60 WerrorS( "rings must have same characteristic" ); -
libpolys/polys/clapsing.cc
r3028b1 r2dac63 87 87 || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN))) 88 88 { 89 setCharacteristic( r Char(r) );89 setCharacteristic( rInternalChar(r) ); 90 90 CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g, r ) ); 91 91 res=convFactoryPSingP( gcd( F, G ) , r); … … 99 99 { 100 100 if ( rField_is_Q_a(r)) setCharacteristic( 0 ); 101 else setCharacteristic( r Char(r) );101 else setCharacteristic( rInternalChar(r) ); 102 102 if (r->cf->extRing->qideal!=NULL) 103 103 { … … 126 126 else 127 127 { // handle user type coeffs: 128 setCharacteristic( r Char(r) );128 setCharacteristic( rInternalChar(r) ); 129 129 CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g, r ) ); 130 130 res=convFactoryPSingP( gcd( F, G ) , r); … … 179 179 { 180 180 bool b1=isOn(SW_USE_EZGCD_P); 181 setCharacteristic( r Char(r) );181 setCharacteristic( rInternalChar(r) ); 182 182 F=convSingPFactoryP( f,r ); 183 183 G=convSingPFactoryP( g,r ); … … 215 215 { 216 216 if ( rField_is_Q_a(r)) setCharacteristic( 0 ); 217 else setCharacteristic( r Char(r) );217 else setCharacteristic( rInternalChar(r) ); 218 218 if (r->cf->extRing->qideal!=NULL) 219 219 { … … 326 326 { 327 327 Variable X(i); 328 setCharacteristic( r Char(r) );328 setCharacteristic( rInternalChar(r) ); 329 329 CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) ); 330 330 res=convFactoryPSingP( resultant( F, G, X),r ); … … 336 336 { 337 337 if (rField_is_Q_a(r)) setCharacteristic( 0 ); 338 else setCharacteristic( r Char(r) );338 else setCharacteristic( rInternalChar(r) ); 339 339 Variable X(i+rPar(r)); 340 340 if (r->cf->extRing->qideal!=NULL) … … 463 463 || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN))) 464 464 { 465 setCharacteristic( r Char(r) );465 setCharacteristic( rInternalChar(r) ); 466 466 CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r) ); 467 467 CanonicalForm FpG=F+G; … … 484 484 { 485 485 if (rField_is_Q_a(r)) setCharacteristic( 0 ); 486 else setCharacteristic( r Char(r) );486 else setCharacteristic( rInternalChar(r) ); 487 487 CanonicalForm Fa,Gb; 488 488 if (r->cf->extRing->qideal!=NULL) … … 549 549 { 550 550 if (rField_is_Z(r)) Off(SW_RATIONAL); 551 setCharacteristic( r Char(r) );551 setCharacteristic( rInternalChar(r) ); 552 552 CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) ); 553 553 res = convFactoryPSingP( F * G,r ); … … 556 556 { 557 557 if (rField_is_Q_a(r)) setCharacteristic( 0 ); 558 else setCharacteristic( r Char(r) );558 else setCharacteristic( rInternalChar(r) ); 559 559 if (r->cf->extRing->qideal!=NULL) 560 560 { … … 626 626 || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN))) 627 627 { 628 setCharacteristic( r Char(r) );628 setCharacteristic( rInternalChar(r) ); 629 629 CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) ); 630 630 res = convFactoryPSingP( F / G,r ); … … 634 634 { 635 635 if (rField_is_Q_a(r)) setCharacteristic( 0 ); 636 else setCharacteristic( r Char(r) );636 else setCharacteristic( rInternalChar(r) ); 637 637 if (r->cf->extRing->qideal!=NULL) 638 638 { … … 673 673 || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN))) 674 674 { 675 setCharacteristic( r Char(r) );675 setCharacteristic( rInternalChar(r) ); 676 676 CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) ); 677 677 CanonicalForm Q,R; … … 684 684 { 685 685 if (rField_is_Q_a(r)) setCharacteristic( 0 ); 686 else setCharacteristic( r Char(r) );686 else setCharacteristic( rInternalChar(r) ); 687 687 if (r->cf->extRing->qideal!=NULL) 688 688 { … … 1038 1038 if (rField_is_Q(r) || rField_is_Zp(r) || rField_is_Z(r) || rField_is_Zn(r)) 1039 1039 { 1040 setCharacteristic( r Char(r) );1040 setCharacteristic( rInternalChar(r) ); 1041 1041 if (errorreported) goto notImpl; // char too large 1042 1042 CanonicalForm F( convSingPFactoryP( f,r ) ); … … 1047 1047 { 1048 1048 if (rField_is_Q_a (r)) setCharacteristic (0); 1049 else setCharacteristic( r Char(r) );1049 else setCharacteristic( rInternalChar(r) ); 1050 1050 if (errorreported) goto notImpl; // char too large 1051 1051 if (r->cf->extRing->qideal!=NULL) /*algebraic extension */ … … 1414 1414 || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN))) 1415 1415 { 1416 setCharacteristic( r Char(r) );1416 setCharacteristic( rInternalChar(r) ); 1417 1417 CanonicalForm F( convSingPFactoryP( f,r ) ); 1418 1418 L = sqrFree( F ); … … 1421 1421 { 1422 1422 if (rField_is_Q_a (r)) setCharacteristic (0); 1423 else setCharacteristic( r Char(r) );1423 else setCharacteristic( rInternalChar(r) ); 1424 1424 if (r->cf->extRing->qideal!=NULL) 1425 1425 { … … 1439 1439 else if (rField_is_GF()) 1440 1440 { 1441 int c=r Char(r);1441 int c=rInternalChar(r); 1442 1442 setCharacteristic( c, primepower(c) ); 1443 1443 CanonicalForm F( convSingGFFactoryGF( f ) ); … … 1550 1550 || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN))) 1551 1551 { 1552 setCharacteristic( r Char(r) );1552 setCharacteristic( rInternalChar(r) ); 1553 1553 for(i=0;i<IDELEMS(I);i++) 1554 1554 { … … 1566 1566 else if (nCoeff_is_transExt (r->cf)) 1567 1567 { 1568 setCharacteristic( r Char(r) );1568 setCharacteristic( rInternalChar(r) ); 1569 1569 for(i=0;i<IDELEMS(I);i++) 1570 1570 { … … 1637 1637 || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN))) 1638 1638 { 1639 setCharacteristic( r Char(r) );1639 setCharacteristic( rInternalChar(r) ); 1640 1640 for(i=0;i<IDELEMS(I);i++) 1641 1641 { … … 1652 1652 else if (nCoeff_is_transExt (r->cf)) 1653 1653 { 1654 setCharacteristic( r Char(r) );1654 setCharacteristic( rInternalChar(r) ); 1655 1655 for(i=0;i<IDELEMS(I);i++) 1656 1656 { -
libpolys/polys/monomials/p_polys.cc
r3028b1 r2dac63 2244 2244 return p_MonPower(p,i,r); 2245 2245 /* else: binom ?*/ 2246 int char_p=r Char(r);2246 int char_p=rInternalChar(r); 2247 2247 if ((char_p>0) && (i>char_p) 2248 2248 && ((rField_is_Zp(r,char_p)
Note: See TracChangeset
for help on using the changeset viewer.