libpolys
polys
templates
p_Neg__T.cc
Go to the documentation of this file.
1
/****************************************
2
* Computer Algebra System SINGULAR *
3
****************************************/
4
/***************************************************************
5
* File: p_Neg__Template.cc
6
* Purpose: template for p_Neg
7
* Author: obachman (Olaf Bachmann)
8
* Created: 8/00
9
*******************************************************************/
10
11
/***************************************************************
12
*
13
* Returns: -p
14
* Destroys: p
15
*
16
***************************************************************/
17
LINKAGE
poly
p_Neg__T
(
poly
p
,
const
ring
r
)
18
{
19
poly
q =
p
;
20
while
(p !=
NULL
)
21
{
22
pSetCoeff0
(p, n_Neg__T(
pGetCoeff
(p), r->cf));
23
pIter
(p);
24
}
25
return
q;
26
}
27
28
p
return P p
Definition:
myNF.cc:203
LINKAGE
#define LINKAGE
Definition:
mod2.h:142
pGetCoeff
static number & pGetCoeff(poly p)
return an alias to the leading coefficient of p assumes that p != NULL NOTE: not copy ...
Definition:
monomials.h:51
p_Neg__T
LINKAGE poly p_Neg__T(poly p, const ring r)
Definition:
p_Neg__T.cc:17
pIter
#define pIter(p)
Definition:
monomials.h:44
r
const ring r
Definition:
syzextra.cc:208
NULL
#define NULL
Definition:
omList.c:10
pSetCoeff0
#define pSetCoeff0(p, n)
Definition:
monomials.h:67
poly
polyrec * poly
Definition:
hilb.h:10
Generated on Mon Apr 17 2017 09:06:14 by
doxygen 1.8.13
for
Singular UNKNOWN_GIT_VERSION