source: git/Singular/pProcs.h @ 49f089

fieker-DuValspielwiese
Last change on this file since 49f089 was d14712, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* got rid off STDTRACE, FAST_AND_DIRTY, (most) DRING, SRING, SDRING * got rid of spoly*.* stuff git-svn-id: file:///usr/local/Singular/svn/trunk@3694 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.0 KB
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4/* $Id: pProcs.h,v 1.1 1999-09-29 10:59:35 obachman Exp $ */
5/*
6*  ABSTRACT -  Declaration of Routines for primitive poly arithmetic
7*/
8
9#include "mod2.h"
10#include "polys.h"
11#include "mmemory.h"
12
13
14// just as macros, for the time being
15#define p_Mult_n            p_Mult_n_General
16#define p_Add_q             p_Add_q_General
17#define p_Mult_m            p_Mult_m_General
18#define p_Minus_m_Mult_q    p_Minus_m_Mult_q_General
19
20
21/////////////////////////////////////////////////////////////////////////
22// Returns:  p*n
23// Destroys: p
24// Const:    n
25poly p_Mult_n_General(poly p, number n);
26
27/////////////////////////////////////////////////////////////////////////
28// Returns:  p + q, *lp == pLength(p+q), p+q are from heap
29// Destroys: p, q
30// Assume:   *lp == NULL || pLength(p) == *lp && pLength(q) == q
31//           p, q are from heap
32poly p_Add_q_General(poly p, poly q, 
33                     int *lp = NULL, int lq = 0,
34                     memHeap heap = mm_specHeap);
35
36
37/////////////////////////////////////////////////////////////////////////
38// Returns: m*a1, newly allocated from heap
39//          if spNoether != NULL, then monoms whioch are smaller
40//          then spNoether are cut
41// Assume:  m is Monom
42// Const: p, m
43poly  p_Mult_m_General(poly p,
44                       poly m, 
45                       poly spNoether = NULL,
46                       memHeap heap = mm_specHeap);
47
48/////////////////////////////////////////////////////////////////////////
49// Return :  p - m*q, allocated from heap
50// Assume:   p is from heap, m is Monom
51//           *lp == NULL || pLength(p) == *lp && pLenth(q) == lq
52// Destroy:  p
53// Const:    m, q
54poly p_Minus_m_Mult_q_General(poly p, 
55                              poly m,
56                              poly q, 
57                              poly spNoether = NULL,
58                              int *lp = NULL, 
59                              int lq = 0,
60                              memHeap heap = mm_specHeap);
61
62
Note: See TracBrowser for help on using the repository browser.