source: git/Singular/spolys0.h @ 18dd47

spielwiese
Last change on this file since 18dd47 was 6ae4f5, checked in by Hans Schönemann <hannes@…>, 27 years ago
* hannes: - corrected scanner.l: parsing of strings in blocks: if (1) { write("","}"); } - corrected ipassign.cc: assignment of "dummy" types: DEF, NONE - corrected sleftv::Print(_), initialisation of _ - added conversion int->def - added CopyD(DEF) - in insert(..): object should not be of type NONE (lists.cc:lInsert0) - added int*intvec, int*intmat to iparith.cc git-svn-id: file:///usr/local/Singular/svn/trunk@145 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.6 KB
Line 
1#ifndef SPOLYS0_H
2#define SPOLYS0_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: spolys0.h,v 1.3 1997-04-09 12:20:12 Singular Exp $ */
7/*
8* ABSTRACT: s-polynomials, internal header
9*/
10#include "polys.h"
11#include "binom.h"
12
13#define spMemcpy(A,B)      memcpy4(A,B,pMonomSize)
14#ifdef TEST_MAC_ORDER
15#define spMonAdd0(a,m)  \
16        {for(int ii=pVariables; ii; ii--) (a)->exp[ii] += (m)->exp[ii];}
17#define spMonAdd(a,m)  \
18        {for(int ii =pVariables; ii; ii--) (a)->exp[ii] += (m)->exp[ii];\
19        pSetm(a);}
20#define spMonSub(a,b)  \
21        {for(int ii =pVariables; ii; ii--) (a)->exp[ii] -= (b)->exp[ii];\
22        pSetm(a);}
23#else
24#define spMonAdd(a,m)  \
25        {for(int ii =pVariables; ii; ii--) (a)->exp[ii] += (m)->exp[ii];\
26        pGetOrder(a) += pGetOrder(m);}
27//        (a)->order += (m)->order;}
28#define spMonSub(a,b)  \
29        {for(int ii =pVariables; ii; ii--) (a)->exp[ii] -= (b)->exp[ii];\
30        pGetOrder(a) -= pGetOrder(b);}
31//        (a)->order -= (b)->order;}
32#endif
33
34void spModuleToPoly(poly a1);
35
36/* reduction */
37poly spGSpolyRed(poly p1, poly p2,poly spNoether);
38void spGSpolyTail(poly p1, poly q, poly q2, poly spNoether);
39poly spGSpolyRedNew(poly p1, poly p2,poly spNoether);
40
41/* s-polynomial */
42poly spGSpolyCreate(poly p1, poly p2,poly spNoether);
43
44/* short s-polynomial for ordering in Bba and Mora */
45void spShort1(poly b, poly a, poly m);
46void spShort2(poly b, poly a, poly m);
47poly spGSpolyShortBba(poly p1, poly p2);
48//poly spGSpolyShortMora(poly p1, poly p2, int *ecart);
49
50#endif
51
Note: See TracBrowser for help on using the repository browser.