source: git/libpolys/polys/templates/p_Neg__T.cc @ e276e4

fieker-DuValspielwiese
Last change on this file since e276e4 was 38500a, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
- further template fix: added "__T" suffix to _all_ labels (incl. func. names!) - todo: finish p_Numbers.h
  • Property mode set to 100644
File size: 736 bytes
Line 
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 *  Version: $Id$
10 *******************************************************************/
11
12/***************************************************************
13 *
14 *   Returns:  -p
15 *   Destroys: p
16 *
17 ***************************************************************/
18LINKAGE poly p_Neg__T(poly p, const ring r)
19{
20  poly q = p;
21  while (p != NULL)
22  {
23    pSetCoeff0(p, n_Neg__T(pGetCoeff(p), r));
24    pIter(p);
25  }
26  return q;
27}
28
29
Note: See TracBrowser for help on using the repository browser.