source: git/libpolys/coeffs/shortfl.h @ a02f4c

spielwiese
Last change on this file since a02f4c was 2f3764, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
n_Init and p_ISet take a "long" (instead of "int") argument
  • Property mode set to 100644
File size: 1.7 KB
Line 
1#ifndef SHORTFL_H
2#define SHORTFL_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/*
7* ABSTRACT
8*/
9/* $Id$ */
10#include <coeffs/coeffs.h>
11
12
13/// Get a mapping function from src into the domain of this type: n_R
14nMapFunc nrSetMap(const coeffs src, const coeffs dst);
15
16/// Initialize r
17BOOLEAN nrInitChar(coeffs r, void*);
18
19// Private interface should be hidden!!!
20
21BOOLEAN nrGreaterZero (number k, const coeffs r);
22number  nrMult        (number a, number b, const coeffs r);
23number  nrInit        (long i, const coeffs r);
24int     nrInt         (number &n, const coeffs r);
25number  nrAdd         (number a, number b, const coeffs r);
26number  nrSub         (number a, number b, const coeffs r);
27void    nrPower       (number a, int i, number * result, const coeffs r);
28BOOLEAN nrIsZero      (number a, const coeffs r);
29BOOLEAN nrIsOne       (number a, const coeffs r);
30BOOLEAN nrIsMOne      (number a, const coeffs r);
31number  nrDiv         (number a, number b, const coeffs r);
32number  nrNeg         (number c, const coeffs r);
33number  nrInvers      (number c, const coeffs r);
34BOOLEAN nrGreater     (number a, number b, const coeffs r);
35BOOLEAN nrEqual       (number a, number b, const coeffs r);
36void    nrWrite       (number &a, const coeffs r);
37const char *  nrRead  (const char *s, number *a, const coeffs r);
38#ifdef LDEBUG
39BOOLEAN nrDBTest(number a, const coeffs r, const char *f, const int l);
40#endif
41
42
43
44// Where are the following used?
45// int     nrGetChar();
46// number nrMapQ(number from, const coeffs r, const coeffs aRing);
47
48
49/// Converts a n_R number into a float. Needed by Maps
50float   nrFloat(number n);
51
52
53#endif
54
Note: See TracBrowser for help on using the repository browser.