source: git/libpolys/coeffs/shortfl.h @ 6ce030f

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