Changeset 5a9e7b in git for kernel/gr_kstd2.cc


Ignore:
Timestamp:
Jan 3, 2007, 1:17:12 AM (16 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
3d11074289ae1a5160b095ecdc1e4d8279ffedc5
Parents:
6dbc9674142dc50c311aab80c025def4c3a3bf08
Message:
*motsak: rewritten non-commutative engine + sca support


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

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    r6dbc96 r5a9e7b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.8 2005-07-27 15:48:28 Singular Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.9 2007-01-03 00:17:09 motsak Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    88
    99#include "mod2.h"
    10 #ifdef HAVE_PLURAL
     10
     11// #ifdef HAVE_PLURAL
     12
     13
    1114#include "omalloc.h"
    1215#include "polys.h"
     
    2225#include "structs.h"
    2326#include "gring.h"
    24 
    25 /*2
    26 * consider the part above syzComp:
    27 * (assume the polynomial comes from a syz computation)
    28 * - it is a constant term: return a copy of it
    29 * - else: return NULL
    30 */
    31 static poly kFromInput(poly p,kStrategy strat)
     27#include "sca.h"
     28
     29#if 0
     30/*3
     31* reduction of p2 with p1
     32* do not destroy p1 and p2
     33* p1 divides p2 -> for use in NF algorithm
     34*/
     35poly gnc_ReduceSpolyNew(const poly p1, poly p2/*,poly spNoether*/, const ring r)
    3236{
    33   poly q=p;
    34 
    35   if (pGetComp(q)>strat->syzComp) return NULL;
    36   while ((q!=NULL) && (pGetComp(q)<=strat->syzComp)) pIter(q);
    37   if (pIsConstantComp(q))
    38     return pHead(q);
    39   return NULL;
     37  return(nc_ReduceSPoly(p1,p_Copy(p2,r)/*,spNoether*/,r));
    4038}
     39#endif
    4140
    4241/*2
     
    7574        wrp(strat->S[j]);
    7675      }
    77       (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p, NULL, currRing);
     76      (*h).p = nc_ReduceSPoly(strat->S[j],(*h).p, currRing);
    7877      //spSpolyRed(strat->T[j].p,(*h).p,strat->kNoether);
    7978
     
    178177      }
    179178      /*- compute the s-polynomial -*/
    180       (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p,strat->kNoether,currRing);
     179      (*h).p = nc_ReduceSPoly(strat->S[j],(*h).p/*,strat->kNoether*/,currRing);
    181180      if ((*h).p == NULL)
    182181      {
     
    211210}
    212211
     212#if 0
    213213/*2
    214214*  reduction procedure for the homogeneous case
     
    498498      {
    499499        strat->fromT=FALSE;
    500         (*h).p = nc_ReduceSpolyNew(pi,(*h).p,strat->kNoether,currRing);
     500        (*h).p = gnc_ReduceSpolyNew(pi,(*h).p,strat->kNoether,currRing);
    501501      }
    502502      else
     
    748748}
    749749
    750 static void gr_initBba(ideal F,kStrategy strat)
     750#endif
     751
     752void gr_initBba(ideal F, kStrategy strat)
    751753{
     754  assume(rIsPluralRing(currRing));
     755
    752756  int i;
    753757  idhdl h;
    754758 /* setting global variables ------------------- */
    755759  strat->enterS = enterSBba;
     760
     761/*
    756762  if ((BTEST1(20)) && (!strat->honey))
    757763    strat->red = nc_redBest;
     
    764770  else
    765771    strat->red = nc_redHomog;
    766   if (rIsPluralRing(currRing))
    767   {
     772*/
     773
     774//   if (rIsPluralRing(currRing))
    768775    strat->red = redGrFirst;
    769   }
     776
    770777  if (pLexOrder && strat->honey)
    771778    strat->initEcart = initEcartNormal;
     
    805812}
    806813
    807 ideal gr_bba (ideal F, ideal Q, kStrategy strat)
     814ideal gnc_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat)
    808815{
     816  assume(pOrdSgn != -1); // no mora!!! it terminates only for global ordering!!! (?)
     817
    809818  intvec *w=NULL;
    810819  intvec *hilb=NULL;
     
    857866        /* prod.crit itself in nc_CreateSpoly */
    858867      }
    859       strat->P.p = nc_CreateSpoly(strat->P.p1,strat->P.p2,strat->kNoether,currRing);
     868      strat->P.p = nc_SPoly(strat->P.p1,strat->P.p2/*,strat->kNoether*/,currRing);
    860869    }
    861870    if (strat->P.p != NULL)
     
    947956  return (strat->Shdl);
    948957}
    949 #endif
     958
     959ideal gnc_gr_mora(const ideal, const ideal, const intvec *, const intvec *, kStrategy)
     960{
     961  PrintS("Sorry, non-commutative mora is not yet implemented!");
     962  PrintLn();
     963
     964  // Not yet!
     965  return NULL;
     966}
     967
     968// #endif
     969
     970
     971
Note: See TracChangeset for help on using the changeset viewer.