source: git/libpolys/coeffs/rmodulon.h @ 560a3d

spielwiese
Last change on this file since 560a3d 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: 2.3 KB
Line 
1#ifndef RMODULON_H
2#define RMODULON_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/*
7* ABSTRACT: numbers modulo n
8*/
9#ifdef HAVE_RINGS
10#include <coeffs/coeffs.h>
11#include <coeffs/rintegers.h>
12
13#ifndef NATNUMBER
14#define NATNUMBER unsigned long
15#endif
16
17BOOLEAN nrnInitChar    (coeffs r, void*);
18number  nrnCopy        (number a, const coeffs r);
19int     nrnSize        (number a, const coeffs r);
20void    nrnDelete      (number *a, const coeffs r);
21BOOLEAN nrnGreaterZero (number k, const coeffs r);
22number  nrnMult        (number a, number b, const coeffs r);
23number  nrnInit        (long i, const coeffs r);
24int     nrnInt         (number &n, const coeffs r);
25number  nrnAdd         (number a, number b, const coeffs r);
26number  nrnSub         (number a, number b, const coeffs r);
27void    nrnPower       (number a, int i, number * result, const coeffs r);
28BOOLEAN nrnIsZero      (number a, const coeffs r);
29BOOLEAN nrnIsOne       (number a, const coeffs r);
30BOOLEAN nrnIsMOne      (number a, const coeffs r);
31BOOLEAN nrnIsUnit      (number a, const coeffs r);
32number  nrnGetUnit     (number a, const coeffs r);
33number  nrnDiv         (number a, number b, const coeffs r);
34number  nrnMod         (number a,number b, const coeffs r);
35number  nrnIntDiv      (number a,number b, const coeffs r);
36number  nrnNeg         (number c, const coeffs r);
37number  nrnInvers      (number c, const coeffs r);
38BOOLEAN nrnGreater     (number a, number b, const coeffs r);
39BOOLEAN nrnDivBy       (number a, number b, const coeffs r);
40int     nrnDivComp     (number a, number b, const coeffs r);
41BOOLEAN nrnEqual       (number a, number b, const coeffs r);
42number  nrnLcm         (number a,number b, const coeffs r);
43number  nrnGcd         (number a,number b, const coeffs r);
44number  nrnExtGcd      (number a, number b, number *s, number *t, const coeffs r);
45nMapFunc nrnSetMap     (const coeffs src, const coeffs dst);
46#define  nrnWrite      nrzWrite
47const char *  nrnRead  (const char *s, number *a, const coeffs r);
48void     nrnCoeffWrite (const coeffs r, BOOLEAN details);
49#ifdef LDEBUG
50BOOLEAN nrnDBTest      (number a, const char *f, const int l, const coeffs r);
51#endif
52void    nrnSetExp(int c, const coeffs r);
53void    nrnInitExp(int c, const coeffs r);
54
55#endif
56#endif
Note: See TracBrowser for help on using the repository browser.