Changeset 26b68f in git for kernel/ring.cc


Ignore:
Timestamp:
Mar 5, 2010, 2:02:28 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
78efe9f25ea57c6afdfe8736b026e6d074a3d9d3
Parents:
c1f5e3cc27d7059b5f61b1805f24638a0836a299
Message:
removed ref from nc_struct

git-svn-id: file:///usr/local/Singular/svn/trunk@12596 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    rc1f5e3c r26b68f  
    381381#ifndef NDEBUG
    382382      if(r->block0[l] == 0 )
    383         Print("::prefix");
     383        PrintS("::prefix");
    384384      else
    385385        Print("::suffix (sign: %d)", r->block0[l]);
     
    445445            Print("\n//    %s%s=",r->names[j-1],r->names[i-1]);
    446446            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);
    448448          }
    449449        }
     
    454454    Print("\n//   noncommutative type:%d", (int)ncRingType(r));
    455455    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);
    459456    if( rIsSCA(r) )
    460457    {
     
    17001697  }
    17011698  //memset: else res->qideal = NULL;
    1702 #ifdef HAVE_PLURAL
    17031699  //memset: res->GetNC() = NULL; // copy is purely commutative!!!
    1704 //  if (rIsPluralRing(r))
    1705 //    nc_rCopy0(res, r); // is this correct??? imho: no!
    1706 #endif
    17071700  return res;
    17081701}
     
    40344027//      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]);
    40354028
    4036       Print("  limit %d\n",r->typ[j].data.is.limit); 
     4029      Print("  limit %d\n",r->typ[j].data.is.limit);
    40374030      #ifndef NDEBUG
    40384031      PrintS("  F: ");idShow(r->typ[j].data.is.F, r, r, 1);
     
    42144207    p_DebugPrint(F->m[j], r, r, 0);
    42154208#endif
    4216    
     4209
    42174210    for( poly p = F->m[j]; p != NULL; pIter(p) )
    4218     {     
     4211    {
    42194212      int c = p_GetComp(p, r);
    42204213
    42214214      if( c > MIN )
    42224215      {
    4223 #ifdef PDEBUG   
     4216#ifdef PDEBUG
    42244217        Print("gen[%d] -> gen(%d)\n", c, MIN + (*V)[ c - MIN - 1 ]);
    42254218#endif
    4226        
     4219
    42274220        p_SetComp( p, MIN + (*V)[ c - MIN - 1 ], r );
    42284221      }
    42294222    }
    4230 #ifdef PDEBUG   
     4223#ifdef PDEBUG
    42314224    Print("new F[%d]:", j);
    42324225    p_Test(F->m[j], r);
     
    43014294  rDebugPrint(currRing);
    43024295#endif
    4303   PrintS("\n");
     4296  PrintLn();
    43044297#endif
    43054298
     
    43174310  rDebugPrint(currRing);
    43184311#endif
    4319   PrintS("\n");
     4312  PrintLn();
    43204313#endif
    43214314  }
     
    43834376    rDebugPrint(r);
    43844377#endif
    4385     PrintS("\n");
     4378    PrintLn();
    43864379#endif
    43874380#endif
     
    44184411    rDebugPrint(r);
    44194412#endif
    4420     PrintS("\n");
     4413    PrintLn();
    44214414#endif
    44224415
     
    47484741  res->OrdSgn = 1;
    47494742  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
    47504754  rChangeCurrRing(res);
    47514755  return res;
     
    47624766    rDebugPrint(r);
    47634767#endif
    4764     PrintS("\n");
     4768    PrintLn();
    47654769#endif
    47664770
     
    48244828    rDebugPrint(res);
    48254829#endif
    4826     PrintS("\n");
    4827 #endif
    4828 
    4829 
     4830    PrintLn();
     4831#endif
    48304832
    48314833#ifdef HAVE_PLURAL
     
    48524854    rDebugPrint(res);
    48534855#endif
    4854     PrintS("\n");
    4855 #endif
    4856 #endif
    4857 
     4856    PrintLn();
     4857#endif
     4858#endif
    48584859
    48594860    if (r->qideal!=NULL)
     
    48844885  return res;
    48854886}
    4886 
    4887 
    4888 
    4889 
    48904887
    48914888ring rCurrRingAssure_dp_S()
     
    51105107   if (rField_is_Ring_PtoM(r)) return n_Zpn;
    51115108   if (rField_is_Ring_2toM(r)) return  n_Z2n;
    5112   #endif         
     5109  #endif
    51135110
    51145111  return n_unknown;
     
    55415538    rChangeCurrRing(dest);
    55425539
    5543   const ring srcBase = src->GetNC()->basering;
     5540  const ring srcBase = src;
    55445541
    55455542  assume( nSetMap(srcBase) == nSetMap(currRing) ); // currRing is important here!
Note: See TracChangeset for help on using the changeset viewer.