source: git/coeffs/rmodulon.h @ 21dc6a

spielwiese
Last change on this file since 21dc6a was 21dc6a, checked in by Frank Seelisch <seelisch@…>, 14 years ago
changes in rmodulon and rmodulo2m etc. but does not compile yet due to linker problems(?)
  • Property mode set to 100755
File size: 2.3 KB
Line 
1#ifndef RMODULON_H
2#define RMODULON_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id$ */
7/*
8* ABSTRACT: numbers modulo n
9*/
10#ifdef HAVE_RINGS
11#include "coeffs.h"
12
13#ifndef NATNUMBER
14#define NATNUMBER unsigned long
15#endif
16
17void    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        (int 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);
48char *  nrnName        (number n, const coeffs r);
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.