Changeset 13366d in git


Ignore:
Timestamp:
Apr 20, 2011, 5:56:26 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
c5412f9a6a13ab8833d5cbe0867056162b572292
Parents:
dd693af15271046d17b3936568ad7f4e972fe37a
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-20 17:56:26+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:22+01:00
Message:
FIX: rSetISReference
FIX: sca should not rely on kNF/sca_bba for the time being => commented out
Location:
libpolys
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    rdd693a r13366d  
    1414#include <omalloc/omalloc.h>
    1515#include <misc/options.h>
    16 #include <misc/intvec.h>
    1716#include <polys/monomials/ring.h>
    1817#include <polys/monomials/p_polys.h>
     
    27332732
    27342733
    2735 bool rSetISReference(const ideal F, const int i, const int p, const intvec * componentWeights, const ring r);
    2736 
    2737 
    27382734/*2
    27392735 * create a copy of the ring r, which must be equivalent to currRing
     
    29492945          ideal F = idrHeadR(r->typ[i].data.is.F, r, res); // Copy F from r into res!
    29502946          assume(
    2951             rSetISReference(
     2947            rSetISReference( res,
    29522948              F,  // WILL BE COPIED!
    29532949              r->typ[i].data.is.limit,
    29542950              j++,
    2955               r->typ[i].data.is.componentWeights, // WILL BE COPIED
    2956               res)
     2951              r->typ[i].data.is.componentWeights // WILL BE COPIED
     2952              )
    29572953            );
    29582954          id_Delete(&F, res);
     
    49424938/// We will use it AS IS!
    49434939/// returns true is everything was allright!
    4944 bool rSetISReference(const ideal F, const ring r,const int i = 0, const int p = 0, const intvec * componentWeights = NULL)
     4940BOOLEAN rSetISReference(const ring r, const ideal F, const int i, const int p, const intvec * componentWeights)
    49454941{
    49464942  // Put the reference set F into the ring -ordering -recor
     
    49574953  {
    49584954    dReportError("Error: WRONG USE of rSetISReference: wrong ring! (typ == NULL)");
    4959     return false;
     4955    return FALSE;
    49604956  }
    49614957
     
    49664962  {
    49674963    dReportError("Error: WRONG USE of rSetISReference: specified ordering block was not found!!!" );
    4968     return false;
     4964    return FALSE;
    49694965  }
    49704966
     
    50135009#endif
    50145010
    5015   return true;
     5011  return TRUE;
    50165012}
    50175013
  • libpolys/polys/monomials/ring.h

    rdd693a r13366d  
    1010
    1111/* includes */
     12#include <omalloc/omalloc.h>
     13#include <misc/auxiliary.h>
    1214#include <coeffs/coeffs.h>
    13 #include <omalloc/omalloc.h>
    1415//#include <polys/monomials/polys-impl.h>
    1516//
     
    664665//
    665666
     667BOOLEAN rSetISReference(const ring r, const ideal F, const int i = 0, const int p = 0, const intvec * componentWeights = NULL);
     668
    666669BOOLEAN rCheckIV(intvec *iv);
    667670int rTypeOfMatrixOrder(intvec * order);
  • libpolys/polys/nc/sca.cc

    rdd693a r13366d  
    8282poly sca_ReduceSpoly(const poly p1, poly p2, const ring r);
    8383
     84/*
    8485// Modified Plural's Buchberger's algorithmus.
    8586ideal sca_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing);
     
    9091// Modified modern Sinuglar Mora's algorithm.
    9192ideal sca_mora(const ideal F, const ideal Q, const intvec *w, const intvec *, kStrategy strat, const ring _currRing);
     93*/
    9294
    9395
     
    14971499    // NOTE: rSaveRing == currRing now!
    14981500    // NOTE: there is no better way to check this in general!
    1499     extern poly kNF(ideal I, ideal Q, poly f, int a, int b, const ring r);
    1500 
    1501     square = kNF(idQuotient, NULL, square, 0, 1, rG); // must ran in currRing == rG!
     1501
     1502//////    TODO!!!!!
     1503//////    extern poly kNF(ideal I, ideal Q, poly f, int a, int b, const ring r);
     1504//////    square = kNF(idQuotient, NULL, square, 0, 1, rG); // must ran in currRing == rG!
    15021505
    15031506    if( square != NULL ) // var(i)^2 is not in Q?
     
    25322535//           Print("Local case => GB == mora!\n");
    25332536#endif
    2534     rGR->GetNC()->p_Procs.GB          = sca_mora; // local ordering => Mora, otherwise - Buchberger!
     2537    rGR->GetNC()->p_Procs.GB          = NULL; // sca_mora; // local ordering => Mora, otherwise - Buchberger!
    25352538  }
    25362539  else
     
    25392542//           Print("Global case => GB == bba!\n");
    25402543#endif
    2541     rGR->GetNC()->p_Procs.GB          = sca_bba; // sca_gr_bba; // sca_bba? // sca_bba;
     2544    rGR->GetNC()->p_Procs.GB          = NULL; // sca_bba; // sca_gr_bba; // sca_bba? // sca_bba;
    25422545  }
    25432546
  • libpolys/tests/Makefile.am

    rdd693a r13366d  
    2323
    2424coeffs_test_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc -lomalloc_debug
    25 polys_test_LDADD = -lpolys_g $(coeffs_test_LDADD)
     25polys_test_LDADD = -lpolys_g -ldl $(coeffs_test_LDADD)
    2626
    2727
Note: See TracChangeset for help on using the changeset viewer.