source: git/libpolys/polys/templates/p_Neg__T.cc @ 6909cfb

spielwiese
Last change on this file since 6909cfb was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • Property mode set to 100644
File size: 718 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 *******************************************************************/
10
11/***************************************************************
12 *
13 *   Returns:  -p
14 *   Destroys: p
15 *
16 ***************************************************************/
17LINKAGE 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));
23    pIter(p);
24  }
25  return q;
26}
27
28
Note: See TracBrowser for help on using the repository browser.