Changeset 85fd90 in git for kernel/polys.cc


Ignore:
Timestamp:
Sep 28, 2011, 5:48:27 PM (13 years ago)
Author:
Burcin Erocal <burcin@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d56ad872d739d42e59b1beb8ccc89be2a204530d
Parents:
32cc7e437ee85bf7d555756eb824eadce50d50c7
git-author:
Burcin Erocal <burcin@erocal.org>2011-09-28 17:48:27+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:41+01:00
Message:
Fix rChangeCurrRing and make the interpreter pass precision info to real/complex coeffs constructor.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    r32cc7e r85fd90  
    1010ideal currQuotient = NULL;
    1111
     12/* -------------------------------------------------------- */
     13/*2
     14* change all global variables to fit the description of the new ring
     15*/
     16
     17void p_SetGlobals(const ring r, BOOLEAN complete)
     18{
     19// // //  if (r->ppNoether!=NULL) p_Delete(&r->ppNoether,r); // ???
     20
     21  if (complete)
     22  {
     23    test &= ~ TEST_RINGDEP_OPTS;
     24    test |= r->options;
     25  }
     26}
     27
    1228void rChangeCurrRing(ring r)
    1329{
    1430   currRing = r;
    1531   currQuotient = r->qideal;
    16    test &= ~ TEST_RINGDEP_OPTS;
    17    test |= r->options;
     32   //------------ global variables related to coefficients ------------
     33   nSetChar(r->cf);
     34   //------------ global variables related to polys -------------------
     35   p_SetGlobals(r);
    1836}
     37/*
     38
     39/// internally changes the gloabl ring and resets the relevant
     40/// global variables:
     41/// SHOULD BE DEPRECATED NOW...?
     42void rChangeCurrRing(ring r)
     43{
     44 // if (!rMinpolyIsNULL(currRing))
     45 // {
     46 //   omCheckAddr(currRing->cf->minpoly);
     47 // }
     48  //------------ set global ring vars --------------------------------
     49  //currRing = r;
     50  //currQuotient=NULL;
     51  if (r != NULL)
     52  {
     53    rTest(r);
     54    //------------ set global ring vars --------------------------------
     55    //currQuotient=r->qideal;
     56
     57    //------------ global variables related to coefficients ------------
     58    nSetChar(r->cf);
     59
     60    //------------ global variables related to polys -------------------
     61    p_SetGlobals(r);
     62    //------------ global variables related to factory -----------------
     63  }
     64}
     65*/
Note: See TracChangeset for help on using the changeset viewer.