Changeset 32c4523 in git for kernel


Ignore:
Timestamp:
Jul 8, 2008, 1:28:21 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
ce8fc75b7c9fd0e9a6b4fe7bfdf8c2c8926941d0
Parents:
77987005e6c432b32a83558af620b8a21ecaa8cc
Message:
*hannes: syntax


git-svn-id: file:///usr/local/Singular/svn/trunk@10845 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/gring.cc

    r779870 r32c4523  
    77 *  Author:  levandov (Viktor Levandovsky)
    88 *  Created: 8/00 - 11/00
    9  *  Version: $Id: gring.cc,v 1.59 2008-07-04 14:21:53 motsak Exp $
     9 *  Version: $Id: gring.cc,v 1.60 2008-07-08 11:28:21 Singular Exp $
    1010 *******************************************************************/
    1111
     
    16441644#endif
    16451645
    1646 #endif
    16471646
    16481647  M2=p_Add_q(M1,M2,r);                             // M1 is killed, M2 = spoly(lt(p1), lt(p2)) = C2*M1 - C1*M2
     
    37253724//   return(TRUE);
    37263725// }
     3726#endif
  • kernel/ring.cc

    r779870 r32c4523  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.95 2008-07-07 12:21:43 wienand Exp $ */
     4/* $Id: ring.cc,v 1.96 2008-07-08 11:26:50 Singular Exp $ */
    55
    66/*
     
    45424542  {
    45434543    idDelete(&(r->qideal));
     4544#ifdef HAVE_PLURAL
    45444545    r->qideal = idOppose(src, src->qideal);
     4546#else
     4547    r->qideal = idCopy( src->qideal);
     4548#endif
     4549
    45454550
    45464551#ifdef HAVE_PLURAL
  • kernel/sca.h

    r779870 r32c4523  
    55*  Computer Algebra System SINGULAR     *
    66****************************************/
    7 /* $Id: sca.h,v 1.13 2008-06-26 18:35:45 motsak Exp $ */
     7/* $Id: sca.h,v 1.14 2008-07-08 11:26:50 Singular Exp $ */
    88
    99#include <ring.h>
     
    2424
    2525
     26#ifdef HAVE_PLURAL
    2627// we must always have this test!
    2728inline ideal SCAQuotient(const ring r)
     
    3132}
    3233
    33 
    34 #ifdef HAVE_PLURAL
    3534#include <gring.h>
    3635
     
    8685// tests whether p is bi-homogeneous with respect to the given variable'(component')-weights
    8786// ps: polynomial is bi-homogeneous iff all terms have the same bi-degree (x,y).
    88 bool p_IsBiHomogeneous(const poly p, 
    89   const intvec *wx, const intvec *wy, 
    90   const intvec *wCx, const intvec *wCy, 
     87bool p_IsBiHomogeneous(const poly p,
     88  const intvec *wx, const intvec *wy,
     89  const intvec *wCx, const intvec *wCy,
    9190  int &dx, int &dy,
    9291  const ring r);
    93  
    94    
     92
     93
    9594//////////////////////////////////////////////////////////////////////////////////////
    9695
    9796// tests whether p is bi-homogeneous with respect to the given variable'(component')-weights
    9897// ps: ideal is bi-homogeneous iff all its generators are bi-homogeneous polynomials.
    99 bool id_IsBiHomogeneous(const ideal id, 
    100   const intvec *wx, const intvec *wy, 
     98bool id_IsBiHomogeneous(const ideal id,
     99  const intvec *wx, const intvec *wy,
    101100  const intvec *wCx, const intvec *wCy,
    102101  const ring r);
     
    118117
    119118
    120 inline bool p_IsSCAHomogeneous(const poly p, 
     119inline bool p_IsSCAHomogeneous(const poly p,
    121120  const intvec *wCx, const intvec *wCy,
    122121  const ring r)
     
    125124  intvec *wx = ivGetSCAXVarWeights(r);
    126125  intvec *wy = ivGetSCAYVarWeights(r);
    127  
     126
    128127  int x,y;
    129128
    130129  bool homog = p_IsBiHomogeneous( p, wx, wy, wCx, wCy, x, y, r );
    131  
     130
    132131  delete wx;
    133132  delete wy;
    134  
    135   return homog; 
     133
     134  return homog;
    136135}
    137136
    138137
    139 inline bool id_IsSCAHomogeneous(const ideal id, 
     138inline bool id_IsSCAHomogeneous(const ideal id,
    140139  const intvec *wCx, const intvec *wCy,
    141140  const ring r)
     
    146145
    147146  bool homog = id_IsBiHomogeneous( id, wx, wy, wCx, wCy, r );
    148  
     147
    149148  delete wx;
    150149  delete wy;
    151  
    152   return homog; 
     150
     151  return homog;
    153152}
    154153
     
    157156
    158157// reduce polynomial p modulo <y_i^2> , i = iFirstAltVar .. iLastAltVar
    159 poly p_KillSquares(const poly p, 
    160   const unsigned int iFirstAltVar, const unsigned int iLastAltVar, 
    161   const ring r); 
     158poly p_KillSquares(const poly p,
     159  const unsigned int iFirstAltVar, const unsigned int iLastAltVar,
     160  const ring r);
    162161
    163162//////////////////////////////////////////////////////////////////////////////////////
    164163
    165164// reduce ideal id modulo <y_i^2> , i = iFirstAltVar .. iLastAltVar
    166 ideal id_KillSquares(const ideal id, 
    167   const unsigned int iFirstAltVar, const unsigned int iLastAltVar, 
    168   const ring r); 
     165ideal id_KillSquares(const ideal id,
     166  const unsigned int iFirstAltVar, const unsigned int iLastAltVar,
     167  const ring r);
    169168
    170169// for benchmarking
     
    176175// should be used only inside nc_SetupQuotient!
    177176// Check whether this our case:
    178 //  1. rG is  a commutative polynomial ring \otimes anticommutative algebra 
     177//  1. rG is  a commutative polynomial ring \otimes anticommutative algebra
    179178//  2. factor ideal rGR->qideal contains squares of all alternating variables.
    180 // 
     179//
    181180// if yes, make rGR a super-commutative algebra!
    182181// NOTE: Factors of SuperCommutative Algebras are supported this way!
     
    194193
    195194#else
    196 // these must not be used at all. 
     195// these must not be used at all.
    197196// #define scaFirstAltVar(R) 0
    198197// #define scaLastAltVar(R) 0
  • kernel/weight.cc

    r779870 r32c4523  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: weight.cc,v 1.5 2008-05-09 09:23:59 Singular Exp $ */
     4/* $Id: weight.cc,v 1.6 2008-07-08 11:26:50 Singular Exp $ */
    55
    66/*
     
    1616#include "febase.h"
    1717#include "ideals.h"
     18#include "ring.h"
    1819#include "weight.h"
    1920
Note: See TracChangeset for help on using the changeset viewer.