Changeset 2dac63 in git


Ignore:
Timestamp:
Jul 21, 2021, 10:42:36 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6fcc76c21a327463abe6861bd1dfc1e50d337b16
Parents:
3028b1af3cce625ab8f0a52d2573c868e76f17f0
Message:
rChar -> rInternalChar
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/fglm.cc

    r3028b1 r2dac63  
    124124    FglmState state= FglmOk;
    125125
    126     if ( rChar(sring) != rChar(dring) )
     126    if ( sring->cf != dring->cf )
    127127    {
    128128        WerrorS( "rings must have same characteristic" );
  • kernel/groebner_walk/walkProc.cc

    r3028b1 r2dac63  
    5656    WalkState state= WalkOk;
    5757
    58     if ( rChar(sring) != rChar(dring) )
     58    if ( sring->cf != dring->cf )
    5959    {
    6060        WerrorS( "rings must have same characteristic" );
  • libpolys/polys/clapsing.cc

    r3028b1 r2dac63  
    8787  || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN)))
    8888  {
    89     setCharacteristic( rChar(r) );
     89    setCharacteristic( rInternalChar(r) );
    9090    CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g, r ) );
    9191    res=convFactoryPSingP( gcd( F, G ) , r);
     
    9999  {
    100100    if ( rField_is_Q_a(r)) setCharacteristic( 0 );
    101     else                   setCharacteristic( rChar(r) );
     101    else                   setCharacteristic( rInternalChar(r) );
    102102    if (r->cf->extRing->qideal!=NULL)
    103103    {
     
    126126  else
    127127  { // handle user type coeffs:
    128     setCharacteristic( rChar(r) );
     128    setCharacteristic( rInternalChar(r) );
    129129    CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g, r ) );
    130130    res=convFactoryPSingP( gcd( F, G ) , r);
     
    179179  {
    180180    bool b1=isOn(SW_USE_EZGCD_P);
    181     setCharacteristic( rChar(r) );
     181    setCharacteristic( rInternalChar(r) );
    182182    F=convSingPFactoryP( f,r );
    183183    G=convSingPFactoryP( g,r );
     
    215215  {
    216216    if ( rField_is_Q_a(r)) setCharacteristic( 0 );
    217     else                   setCharacteristic( rChar(r) );
     217    else                   setCharacteristic( rInternalChar(r) );
    218218    if (r->cf->extRing->qideal!=NULL)
    219219    {
     
    326326  {
    327327    Variable X(i);
    328     setCharacteristic( rChar(r) );
     328    setCharacteristic( rInternalChar(r) );
    329329    CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) );
    330330    res=convFactoryPSingP( resultant( F, G, X),r );
     
    336336  {
    337337    if (rField_is_Q_a(r)) setCharacteristic( 0 );
    338     else               setCharacteristic( rChar(r) );
     338    else               setCharacteristic( rInternalChar(r) );
    339339    Variable X(i+rPar(r));
    340340    if (r->cf->extRing->qideal!=NULL)
     
    463463  || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN)))
    464464  {
    465     setCharacteristic( rChar(r) );
     465    setCharacteristic( rInternalChar(r) );
    466466    CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r) );
    467467    CanonicalForm FpG=F+G;
     
    484484  {
    485485    if (rField_is_Q_a(r)) setCharacteristic( 0 );
    486     else                 setCharacteristic( rChar(r) );
     486    else                 setCharacteristic( rInternalChar(r) );
    487487    CanonicalForm Fa,Gb;
    488488    if (r->cf->extRing->qideal!=NULL)
     
    549549  {
    550550    if (rField_is_Z(r)) Off(SW_RATIONAL);
    551     setCharacteristic( rChar(r) );
     551    setCharacteristic( rInternalChar(r) );
    552552    CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) );
    553553    res = convFactoryPSingP( F * G,r );
     
    556556  {
    557557    if (rField_is_Q_a(r)) setCharacteristic( 0 );
    558     else               setCharacteristic( rChar(r) );
     558    else               setCharacteristic( rInternalChar(r) );
    559559    if (r->cf->extRing->qideal!=NULL)
    560560    {
     
    626626  || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN)))
    627627  {
    628     setCharacteristic( rChar(r) );
     628    setCharacteristic( rInternalChar(r) );
    629629    CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) );
    630630    res = convFactoryPSingP( F / G,r );
     
    634634  {
    635635    if (rField_is_Q_a(r)) setCharacteristic( 0 );
    636     else               setCharacteristic( rChar(r) );
     636    else               setCharacteristic( rInternalChar(r) );
    637637    if (r->cf->extRing->qideal!=NULL)
    638638    {
     
    673673  || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN)))
    674674  {
    675     setCharacteristic( rChar(r) );
     675    setCharacteristic( rInternalChar(r) );
    676676    CanonicalForm F( convSingPFactoryP( f,r ) ), G( convSingPFactoryP( g,r ) );
    677677    CanonicalForm Q,R;
     
    684684  {
    685685    if (rField_is_Q_a(r)) setCharacteristic( 0 );
    686     else               setCharacteristic( rChar(r) );
     686    else               setCharacteristic( rInternalChar(r) );
    687687    if (r->cf->extRing->qideal!=NULL)
    688688    {
     
    10381038    if (rField_is_Q(r) || rField_is_Zp(r) || rField_is_Z(r) || rField_is_Zn(r))
    10391039    {
    1040       setCharacteristic( rChar(r) );
     1040      setCharacteristic( rInternalChar(r) );
    10411041      if (errorreported) goto notImpl; // char too large
    10421042      CanonicalForm F( convSingPFactoryP( f,r ) );
     
    10471047    {
    10481048      if (rField_is_Q_a (r)) setCharacteristic (0);
    1049       else                   setCharacteristic( rChar(r) );
     1049      else                   setCharacteristic( rInternalChar(r) );
    10501050      if (errorreported) goto notImpl; // char too large
    10511051      if (r->cf->extRing->qideal!=NULL) /*algebraic extension */
     
    14141414  || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN)))
    14151415  {
    1416     setCharacteristic( rChar(r) );
     1416    setCharacteristic( rInternalChar(r) );
    14171417    CanonicalForm F( convSingPFactoryP( f,r ) );
    14181418    L = sqrFree( F );
     
    14211421  {
    14221422    if (rField_is_Q_a (r)) setCharacteristic (0);
    1423     else                   setCharacteristic( rChar(r) );
     1423    else                   setCharacteristic( rInternalChar(r) );
    14241424    if (r->cf->extRing->qideal!=NULL)
    14251425    {
     
    14391439  else if (rField_is_GF())
    14401440  {
    1441     int c=rChar(r);
     1441    int c=rInternalChar(r);
    14421442    setCharacteristic( c, primepower(c) );
    14431443    CanonicalForm F( convSingGFFactoryGF( f ) );
     
    15501550  || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN)))
    15511551  {
    1552     setCharacteristic( rChar(r) );
     1552    setCharacteristic( rInternalChar(r) );
    15531553    for(i=0;i<IDELEMS(I);i++)
    15541554    {
     
    15661566  else if (nCoeff_is_transExt (r->cf))
    15671567  {
    1568     setCharacteristic( rChar(r) );
     1568    setCharacteristic( rInternalChar(r) );
    15691569    for(i=0;i<IDELEMS(I);i++)
    15701570    {
     
    16371637  || (rField_is_Zn(r)&&(r->cf->convSingNFactoryN!=ndConvSingNFactoryN)))
    16381638  {
    1639     setCharacteristic( rChar(r) );
     1639    setCharacteristic( rInternalChar(r) );
    16401640    for(i=0;i<IDELEMS(I);i++)
    16411641    {
     
    16521652  else if (nCoeff_is_transExt (r->cf))
    16531653  {
    1654     setCharacteristic( rChar(r) );
     1654    setCharacteristic( rInternalChar(r) );
    16551655    for(i=0;i<IDELEMS(I);i++)
    16561656    {
  • libpolys/polys/monomials/p_polys.cc

    r3028b1 r2dac63  
    22442244            return p_MonPower(p,i,r);
    22452245          /* else: binom ?*/
    2246           int char_p=rChar(r);
     2246          int char_p=rInternalChar(r);
    22472247          if ((char_p>0) && (i>char_p)
    22482248          && ((rField_is_Zp(r,char_p)
Note: See TracChangeset for help on using the changeset viewer.