Changeset d3981f in git for kernel/sca.cc


Ignore:
Timestamp:
Mar 2, 2007, 3:26:54 PM (17 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
cbc372f1d6bba1dc057875ed3c0faeac5d926e88
Parents:
68fcc8f5fe5f537b6dd4c6bc7e14f5987b81c31c
Message:
*motsak: fixed rank for ideal square killer. warning elimination.


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

Legend:

Unmodified
Added
Removed
  • kernel/sca.cc

    r68fcc8 rd3981f  
    77 *  Author:  motsak (Oleksandr Motsak)
    88 *  Created: 2006/12/18
    9  *  Version: $Id: sca.cc,v 1.10 2007-02-23 14:41:43 motsak Exp $
     9 *  Version: $Id: sca.cc,v 1.11 2007-03-02 14:26:54 motsak Exp $
    1010 *******************************************************************/
    1111
     
    384384      if(iComponentMonomM==0 )
    385385      {
    386         Print("Multiplication in the left module from the right");
     386        WarnS("Multiplication in the left module from the right");
    387387      }
    388388#endif
     
    466466      if(iComponentMonomM==0 )
    467467      {
    468         Print("Multiplication in the left module from the right");
     468        WarnS("Multiplication in the left module from the right");
    469469      }
    470470#endif
     
    576576      if(iComponent==0 )
    577577      {
    578         Print("Multiplication in the left module from the right");
     578        WarnS("Multiplication in the left module from the right");
    579579      }
    580580#endif
     
    649649      if(iComponent==0 )
    650650      {
    651         Print("Multiplication in the left module from the right");
     651        WarnS("Multiplication in the left module from the right");
    652652      }
    653653#endif
     
    959959}
    960960
     961#ifndef NDEBUG
     962
     963// set it here if needed.
     964#define MYTEST 0
     965
     966#else
     967
     968#define MYTEST 0
     969
     970#endif
     971
     972
    961973
    962974ideal sca_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat)
    963975{
     976#if MYTEST
     977   PrintS("<sca_gr_bba>\n");
     978#endif
     979
    964980  assume(rIsSCA(currRing));
     981
     982#ifndef NDEBUG
     983  idTest(F);
     984  idTest(Q); 
     985#endif
    965986
    966987  const unsigned int m_iFirstAltVar = scaFirstAltVar(currRing);
     
    976997  strat->homog = strat->homog && bIdHomog;
    977998
    978 #ifdef PDEBUG
     999
    9791000  assume( strat->homog == bIdHomog );
    980 #endif /*PDEBUG*/
    981 
    982 
    983 #if 0
    984    PrintS("<sca::bba>\n");
     1001
     1002
     1003#if MYTEST
     1004/*
    9851005  {
    9861006    Print("ideal F: \n");
    987     for (int i = 0; i < tempF->idelems(); i++)
    988     {
    989       Print("; F[%d] = ", i+1);
    990       p_Write(tempF->m[i], currRing);
    991     }
    992     Print(";\n");
    993     PrintLn();
    994   }
    995 #endif
    996 
    997 
    998 #ifdef PDEBUG
    999 //   PrintS("sca_gr_bba\n");
    1000 #endif /*PDEBUG*/
     1007    idPrint(F);
     1008    Print("ideal tempF: \n");
     1009    idPrint(F);
     1010  }
     1011*/
     1012#endif
     1013
     1014
    10011015
    10021016
     
    10051019  int olddeg, reduc;
    10061020  int red_result = 1;
    1007   int hilbeledeg = 1, hilbcount = 0, minimcnt = 0;
     1021//  int hilbeledeg = 1, minimcnt = 0;
     1022  int hilbcount = 0;
    10081023
    10091024  initBuchMoraCrit(strat); // set Gebauer, honey, sugarCrit
     
    12031218
    12041219
    1205 #if 0
    1206    PrintS("</sca::bba>\n");
     1220#if MYTEST
     1221   PrintS("</sca_gr_bba>\n");
    12071222#endif
    12081223
     
    13971412{
    13981413  assume(1 <= i);
    1399   assume(i <= rRing->N);
     1414  assume(i <= (unsigned int)rRing->N);
    14001415
    14011416  if(rIsSCA(rRing))
     
    14221437
    14231438// Under development!!!
    1424 ideal sca_bba (const ideal F, const ideal Q, const intvec *w, const intvec *hilb, kStrategy strat)
     1439ideal sca_bba (const ideal F, const ideal Q, const intvec *w, const intvec * /*hilb*/, kStrategy strat)
    14251440{
    14261441  assume(rIsSCA(currRing));
     
    14481463  int   srmax, lrmax, red_result = 1;
    14491464  int   olddeg, reduc;
    1450   int hilbeledeg=1, hilbcount=0, minimcnt=0;
     1465
     1466//  int hilbeledeg = 1, minimcnt = 0;
     1467  int hilbcount = 0;
    14511468
    14521469  BOOLEAN withT = FALSE;
     
    18671884  int reduc = 0;
    18681885  int red_result = 1;
    1869   int hilbeledeg=1,hilbcount=0;
     1886//  int hilbeledeg=1;
     1887  int hilbcount=0;
    18701888
    18711889  strat->update = TRUE;
     
    21952213  assume( wy->cols() == 1 );
    21962214
    2197   assume( wx->rows() >= N );
    2198   assume( wy->rows() >= N );
     2215  assume( (unsigned int)wx->rows() >= N );
     2216  assume( (unsigned int)wy->rows() >= N );
    21992217
    22002218  int x = 0;
     
    23562374  assume( m != NULL );
    23572375
    2358   for(int k = iFirstAltVar; k <= iLastAltVar; k++)
     2376  for(unsigned int k = iFirstAltVar; k <= iLastAltVar; k++)
    23592377    if( p_GetExp(m, k, r) > 1 )
    23602378      return NULL; 
     
    24282446  if (iSize == 0) return id;
    24292447 
    2430   ideal temp = idInit(iSize, 1);
     2448  ideal temp = idInit(iSize, id->rank);
    24312449 
    24322450#if 0
     
    24652483#endif
    24662484
     2485//  temp->rank = idRankFreeModule(temp, r);
     2486
    24672487  return temp;
    24682488}
Note: See TracChangeset for help on using the changeset viewer.