Loading...
Searching...
No Matches
p_Neg__T.cc
Go to the documentation of this file.
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/***************************************************************
* File: p_Neg__Template.cc
* Purpose: template for p_Neg
* Author: obachman (Olaf Bachmann)
* Created: 8/00
*******************************************************************/
/***************************************************************
*
* Returns: -p
* Destroys: p
*
***************************************************************/
LINKAGE poly p_Neg__T(poly p, const ring r)
{
poly q = p;
while (p != NULL)
{
pSetCoeff0(p, n_Neg__T(pGetCoeff(p), r->cf));
pIter(p);
}
return q;
}
p
int p
Definition cfModGcd.cc:4086
LINKAGE
#define LINKAGE
Definition mod2.h:140
pIter
#define pIter(p)
Definition monomials.h:37
pSetCoeff0
#define pSetCoeff0(p, n)
Definition monomials.h:59
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:44
NULL
#define NULL
Definition omList.c:12
p_Neg__T
LINKAGE poly p_Neg__T(poly p, const ring r)
Definition p_Neg__T.cc:17