source: git/coeffs/gnumpfl.h @ 039016

spielwiese
Last change on this file since 039016 was 039016, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
Fixing nCoeffsEqual and other warnings... TODO: add "domain->nCoeffIsEqual = n??CoeffsEqual;" to your n??InitChar!
  • Property mode set to 100644
File size: 1.6 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, void *);
17
18const char *   ngfRead (const char *s, number *a, const coeffs r);
19
20 // Private interface should be hidden!!!
21/// Note: MAY NOT WORK AS EXPECTED!
22BOOLEAN  ngfGreaterZero(number za, const coeffs r);
23BOOLEAN  ngfGreater(number a, number b, const coeffs r);
24BOOLEAN  ngfEqual(number a, number b, const coeffs r);
25BOOLEAN  ngfIsOne(number a, const coeffs r);
26BOOLEAN  ngfIsMOne(number a, const coeffs r);
27BOOLEAN  ngfIsZero(number za, const coeffs r);
28number   ngfInit(int i, const coeffs r);
29int      ngfInt(number &n, const coeffs r);
30number   ngfNeg(number za, const coeffs r);
31number   ngfInvers(number a, const coeffs r);
32number   ngfAdd(number la, number li, const coeffs r);
33number   ngfSub(number la, number li, const coeffs r);
34number   ngfMult(number a, number b, const coeffs r);
35number   ngfDiv(number a, number b, const coeffs r);
36void     ngfPower(number x, int exp, number *lu, const coeffs r);
37number   ngfCopy(number a, const coeffs r);
38number   ngf_Copy(number a, coeffs r);
39void     ngfWrite(number &a, const coeffs r);
40
41void     ngfDelete(number *a, const coeffs r);
42
43void setGMPFloatDigits( size_t digits, size_t rest );
44number ngfMapQ(number from, const coeffs r);
45
46#endif
Note: See TracBrowser for help on using the repository browser.