source: git/coeffs/gnumpfl.h @ 210852

spielwiese
Last change on this file since 210852 was 210852, checked in by Mohamed Barakat <mohamed.barakat@…>, 14 years ago
started adapting gnumpfl.{h,cc}
  • Property mode set to 100644
File size: 1.7 KB
Line 
1#ifndef GMPFLOAT_H
2#define GMPFLOAT_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id$ */
7/*
8* ABSTRACT: computations with GMP floating-point numbers
9*/
10#include "coeffs.h"
11
12/// Get a mapping function from src into the domain of this type:
13nMapFunc  ngfSetMap(const coeffs src, const coeffs dst);
14
15/// Initialize r
16void ngfInitChar(coeffs r, int);
17
18/// test, whether r is an instance of nInitCoeffs(n, parameter) */
19static BOOLEAN ngfCoeffsEqual(const coeffs r, n_coeffType n, int parameter);
20
21
22/* // Private interface should be hidden!!!
23/// Note: MAY NOT WORK AS EXPECTED!
24BOOLEAN  ngfGreaterZero(number za, const coeffs r);
25BOOLEAN  ngfGreater(number a, number b, const coeffs r);
26BOOLEAN  ngfEqual(number a, number b, const coeffs r);
27BOOLEAN  ngfIsOne(number a, const coeffs r);
28BOOLEAN  ngfIsMOne(number a, const coeffs r);
29BOOLEAN  ngfIsZero(number za, const coeffs r);
30number   ngfInit(int i, const coeffs r);
31int      ngfInt(number &n, const coeffs r);
32number   ngfNeg(number za, const coeffs r);
33number   ngfInvers(number a, const coeffs r);
34number   ngfAdd(number la, number li, const coeffs r);
35number   ngfSub(number la, number li, const coeffs r);
36number   ngfMult(number a, number b, const coeffs r);
37number   ngfDiv(number a, number b, const coeffs r);
38void     ngfPower(number x, int exp, number *lu, const coeffs r);
39number   ngfCopy(number a, const coeffs r);
40number   ngf_Copy(number a, coeffs r);
41const char *   ngfRead (const char *s, number *a, const coeffs r);
42void     ngfWrite(number &a, const coeffs r);
43
44void     ngfDelete(number *a, const coeffs r);
45
46void setGMPFloatDigits( size_t digits, size_t rest );
47number ngfMapQ(number from, const coeffs r);
48*/
49#endif
Note: See TracBrowser for help on using the repository browser.