Changeset 45d2332 in git


Ignore:
Timestamp:
Mar 31, 2011, 6:30:18 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3f2fb2cdc5019bbfc97d4fa27121402be181a8a3
Parents:
ab4f17f53255dd31a9347110c1d434aea6bda6ae
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-31 18:30:18+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:16+01:00
Message:
FIX: p_polys.cc
CHG: use mylimits.h instead of limit.h in misc/auxiliary.h!
Location:
libpolys
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • libpolys/misc/auxiliary.h

    rab4f17 r45d2332  
    5959#ifndef SIZEOF_LONG
    6060
    61 #include <limits.h>
     61#include <misc/mylimits.h>
    6262
    6363#ifndef LONG_BIT
  • libpolys/misc/mylimits.h

    rab4f17 r45d2332  
    1616
    1717#ifdef IRIX
    18 #include <omlimits.h>
     18#include <omalloc/omlimits.h>
    1919#else
    2020#include <limits.h>
  • libpolys/polys/monomials/p_polys.cc

    rab4f17 r45d2332  
    44/***************************************************************
    55 *  File:    p_polys.cc
    6  *  Purpose: implementation of currRing independent poly procedures
     6 *  Purpose: implementation of ring independent poly procedures?
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
     
    1212#include <ctype.h>
    1313
     14
     15#include <omalloc/omalloc.h>
    1416#include <misc/auxiliary.h>
     17#include <misc/options.h>
     18#include <misc/intvec.h>
     19
     20#include <coeffs/longrat.h> // ???
     21
     22#include <polys/weight.h>
    1523
    1624#include <polys/monomials/ring.h>
    1725#include <polys/monomials/p_polys.h>
    18 #include <polys/monomials/ring.h>
    19 #include <polys/weight.h>
    20 #include <coeffs/longrat.h>
    21 #include <misc/options.h>
    22 #include <misc/intvec.h>
     26
    2327// #include <???/ideals.h>
    2428// #include <???/int64vec.h>
     29
    2530#ifndef NDEBUG
    2631// #include <???/febase.h>
     32#endif
     33
     34#ifdef HAVE_PLURAL
     35#include <polys/nc/nc.h>
     36#include <polys/nc/sca.h>
    2737#endif
    2838
     
    744754long pLDeg1_Deg(poly p,int *l, const ring r)
    745755{
    746   assume(r->pFDeg == pDeg);
     756  assume(r->pFDeg == p_Deg);
    747757  p_CheckPolyRing(p, r);
    748758  long k= p_GetComp(p, r);
     
    775785long pLDeg1c_Deg(poly p,int *l, const ring r)
    776786{
    777   assume(r->pFDeg == pDeg);
     787  assume(r->pFDeg == p_Deg);
    778788  p_CheckPolyRing(p, r);
    779789  int ll=1;
     
    13131323poly p_Div_nn(poly p, const number n, const ring r)
    13141324{
    1315   pAssume(!n_IsZero(n,r));
     1325  pAssume(!n_IsZero(n,r->cf));
    13161326  p_Test(p, r);
    13171327
     
    28402850// resets the pFDeg and pLDeg: if pLDeg is not given, it is
    28412851// set to currRing->pLDegOrig, i.e. to the respective LDegProc which
    2842 // only uses pFDeg (and not pDeg, or pTotalDegree, etc)
     2852// only uses pFDeg (and not p_Deg, or pTotalDegree, etc)
    28432853void pSetDegProcs(ring r, pFDegProc new_FDeg, pLDegProc new_lDeg)
    28442854{
     
    29232933  if (rField_is_Ring(r))
    29242934  {
    2925     if (!nIsUnit(pGetCoeff(p1))) return;
     2935    if (!n_IsUnit(pGetCoeff(p1), r->cf)) return;
    29262936    // Werror("p_Norm not possible in the case of coefficient rings.");
    29272937  }
     
    29802990  {
    29812991#ifdef LDEBUG
    2982     if (currRing==r) {nTest(pGetCoeff(p));}
     2992    n_Test(pGetCoeff(p), r->cf);
    29832993#endif
    29842994    n_Normalize(pGetCoeff(p),r->cf);
     
    30643074  while (non_zero != NULL)
    30653075  {
    3066     assume(p_GetExp(non_zero, nm,r) != 0);
     3076    assume(p_GetExp(non_zero, n, r) != 0);
    30673077    qq = non_zero;
    30683078    pIter(non_zero);
  • libpolys/polys/monomials/p_polys.h

    rab4f17 r45d2332  
    330330 *
    331331 ***************************************************************/
    332 static inline poly      pLast(poly a, int &length);
    333 inline   poly      pLast(poly a) { int l; return pLast(a, l);}
     332
     333// returns the length of a (numbers of monomials)
     334// respect syzComp
     335// static inline poly pLast(poly a, int &length);
     336// static inline poly pLast(poly a) { int l; return pLast(a, l); }
     337
     338
    334339static inline poly pReverse(poly p)
    335340{
  • libpolys/polys/nc/nc.h

    rab4f17 r45d2332  
    11#ifndef POLYS_NC_H
    22#define POLYS_NC_H
     3
    34
    45#ifdef HAVE_PLURAL
     
    3536
    3637// //////////////////////////////////////////////////////
     38
     39
    3740
    3841// NC pProcs:
     
    181184
    182185
     186
     187// //////////////////////////////////////////////////////////////////////// //
     188// we must always have this test!?
     189inline bool rIsSCA(const ring r)
     190{
     191#ifdef HAVE_PLURAL
     192  return rIsPluralRing(r) && (ncRingType(r) == nc_exterior);
     193#else
     194  return false;
     195#endif
     196}
     197
    183198// //////////////////////////////////////////////////////////////////////// //
    184199// NC inlines
     
    281296}
    282297
     298
     299
     300/* subst: */
     301poly nc_pSubst(poly p, int n, poly e, const ring r);
     302
     303
     304
    283305#endif /* HAVE_PLURAL */
    284306
  • libpolys/polys/nc/sca.h

    rab4f17 r45d2332  
    22#define SCA_H
    33
    4 /****************************************
    5 *  Computer Algebra System SINGULAR     *
    6 ****************************************/
    7 /* $Id$ */
     4#ifdef HAVE_PLURAL
    85
    9 #include <kernel/ring.h>
    10 #include <kernel/gring.h>
    11 #include <kernel/structs.h>
    12 #include <kernel/intvec.h>
     6#include <polys/nc/nc.h>
    137
    14 
    15 // we must always have this test!
    16 inline bool rIsSCA(const ring r)
    17 {
    18 #ifdef HAVE_PLURAL
    19   return rIsPluralRing(r) && (ncRingType(r) == nc_exterior);
    20 #else
    21   return false;
    22 #endif
    23 }
    24 
    25 
    26 #ifdef HAVE_PLURAL
    278// we must always have this test!
    289inline ideal SCAQuotient(const ring r)
     
    3213}
    3314
    34 #include <kernel/gring.h>
    3515
    3616
Note: See TracChangeset for help on using the changeset viewer.