Changeset e6d914d in git


Ignore:
Timestamp:
Jan 26, 2012, 5:51:21 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4fbc43cfe0d034a0bc31f3f17f00812926c1c4c1
Parents:
9c4455736757027717bc226ed2b7db2cece818812dbf7e59673f79e50959ef8e51ebc47ff01dcb96
Message:
Merge pull request #44 from mmklee/factory_sqrfree_sw

fix: some issues with leading coeff in squarefree factorization over finite fields
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r2dbf7e re6d914d  
    49324932}
    49334933
    4934 const short MAX_SHORT = SHRT_MAX; // (1 << (sizeof(short)*8)) - 1;
     4934const short MAX_SHORT = 32767; // (1 << (sizeof(short)*8)) - 1;
    49354935
    49364936////////////////////
  • factory/facFqSquarefree.cc

    r9c4455 re6d914d  
    110110  int l= x.level();
    111111  int k;
    112   bool GF= false;
    113112  if (CFFactory::gettype() == GaloisFieldDomain)
    114113    k= getGFDegree();
     
    174173      j.getItem()= CFFactor (j.getItem().factor()/tmp, j.getItem().exp());
    175174      if (degree (tmp) > 0 && tmp.level() > 0)
    176         result.append (CFFactor (M (tmp),
     175      {
     176        tmp= M (tmp);
     177        result.append (CFFactor (tmp/Lc(tmp),
    177178                       j.getItem().exp()*p + i.getItem().exp()));
     179      }
    178180    }
    179181  }
    180182  for (CFFListIterator i= tmp2; i.hasItem(); i++)
     183  {
    181184    if (degree (i.getItem().factor()) > 0 && i.getItem().factor().level() >= 0)
    182       result.append (CFFactor (M (i.getItem().factor()), i.getItem().exp()));
     185    {
     186      tmp= M (i.getItem().factor());
     187      result.append (CFFactor (tmp/Lc(tmp), i.getItem().exp()));
     188    }
     189  }
    183190  for (CFFListIterator j= tmp1; j.hasItem(); j++)
     191  {
    184192    if (degree (j.getItem().factor()) > 0 && j.getItem().factor().level() >= 0)
    185       result.append (CFFactor (M (j.getItem().factor()), j.getItem().exp()*p));
     193    {
     194      tmp= M (j.getItem().factor());
     195      result.append (CFFactor (tmp/Lc(tmp), j.getItem().exp()*p));
     196    }
     197  }
    186198  return result;
    187199}
  • kernel/syz.h

    r2dbf7e re6d914d  
    88* ABSTRACT: Resolutions
    99*/
     10#include <misc/mylimits.h>
    1011#include <kernel/structs.h>
    1112#include <polys/monomials/ring.h>
  • libpolys/polys/monomials/p_polys.cc

    r2dbf7e re6d914d  
    14981498    n_Normalize(n,r->cf);
    14991499    p_SetCoeff(p, n, r);   // destroys old leading coefficient!
    1500     p = pIter(p);
     1500    pIter(p);
    15011501  }
    15021502  n_Delete(&lcInverse, r->cf);
  • libpolys/resources/feResource.cc

    r2dbf7e re6d914d  
    1414
    1515#include "config.h"
    16 #include <misc/auxiliary.h>
    1716
    1817#include <findexec/omFindExec.h>
     
    3231
    3332#include <reporter/reporter.h>
    34 #if !defined(ESINGULAR) && !defined(TSINGULAR)
    3533#include <omalloc/omalloc.h>
    36 #else
    37 char* feResource(const char id, int warn = -1);
    38 char* feResource(const char* key, int warn = -1);
    39 #endif
     34//char* feResource(const char id, int warn = -1);
     35//char* feResource(const char* key, int warn = -1);
    4036
    4137// define RESOURCE_DEBUG for chattering about resource management
    4238// #define RESOURCE_DEBUG
    4339
    44 #if defined(MAKE_DISTRIBUTION)
    45 #if defined(ix86_Win) && ! defined(__CYGWIN__)
    46 #define SINGULAR_DEFAULT_DIR "/Singular/"S_VERSION1
    47 #else // unix
    4840#define SINGULAR_DEFAULT_DIR "/usr/local/Singular/"S_VERSION1
    49 #endif
    50 #else // ! defined(MAKE_DISTRIBUTION)
    51 #define SINGULAR_DEFAULT_DIR S_ROOT_DIR
    52 #endif // defined(MAKE_DISTRIBUTION)
    5341
    5442/*****************************************************************
     
    11098  {"Path",      'p',    feResPath,  NULL,                   "%b;$PATH",             (char *)""},
    11199
    112 #ifdef ESINGULAR
    113100  {"emacs",     'E',    feResBinary,"ESINGULAR_EMACS",      "%b/emacs",             (char *)""},
    114101  {"xemacs",    'A',    feResBinary,"ESINGULAR_EMACS",      "%b/xemacs",            (char *)""},
     
    116103  {"EmacsLoad", 'l',    feResFile,  "ESINGULAR_EMACS_LOAD", "%e/.emacs-singular",   (char *)""},
    117104  {"EmacsDir",  'e',    feResDir,   "ESINGULAR_EMACS_DIR",  "%r/emacs",             (char *)""},
    118 #elif defined(TSINGULAR)
    119105  {"SingularXterm",'M', feResBinary,"TSINGULAR_SINGULAR",   "%b/Singular",          (char *)""},
    120106#ifdef ix86_Win
     
    123109  {"xterm",     'X',    feResBinary,"XTERM",                "%b/xterm",             (char *)""},
    124110#endif
    125 #else
    126111  {"EmacsDir",  'e',    feResDir,   "SINGULAR_EMACS_DIR",   "%r/emacs",             (char *)""},
    127 #endif
    128112  {NULL, 0, feResUndef, NULL, NULL, NULL}, // must be the last record
    129113};
  • libpolys/resources/feResource.h

    r2dbf7e re6d914d  
    22#define FERESOURCE_H
    33
    4 #ifdef HAVE_SYS_PARAM_H
    54#include <sys/param.h>
    6 #endif
    7 
    8 #include <misc/auxiliary.h>
    9 #include <misc/mylimits.h>
    105
    116#define DIR_SEP '/'
Note: See TracChangeset for help on using the changeset viewer.