![]() |
#include <misc/auxiliary.h>
#include <misc/mylimits.h>
#include <reporter/reporter.h>
#include "numbers.h"
#include "coeffs.h"
#include "mpr_complex.h"
#include "shortfl.h"
#include "longrat.h"
#include <string.h>
#include <math.h>
Go to the source code of this file.
Data Structures | |
union | nf |
Macros | |
#define | SR_HDL(A) ((long)(A)) |
#define | IS_INT(A) ((A)->s==3) |
#define | IS_IMM(A) (SR_HDL(A) & SR_INT) |
#define | GET_NOM(A) ((A)->z) |
#define | GET_DENOM(A) ((A)->n) |
Functions | |
BOOLEAN | nrGreaterZero (number k, const coeffs r) |
number | nrMult (number a, number b, const coeffs r) |
number | nrInit (long i, const coeffs r) |
long | nrInt (number &n, const coeffs r) |
number | nrAdd (number a, number b, const coeffs r) |
number | nrSub (number a, number b, const coeffs r) |
void | nrPower (number a, int i, number *result, const coeffs r) |
BOOLEAN | nrIsZero (number a, const coeffs r) |
BOOLEAN | nrIsOne (number a, const coeffs r) |
BOOLEAN | nrIsMOne (number a, const coeffs r) |
number | nrDiv (number a, number b, const coeffs r) |
number | nrNeg (number c, const coeffs r) |
number | nrInvers (number c, const coeffs r) |
BOOLEAN | nrGreater (number a, number b, const coeffs r) |
BOOLEAN | nrEqual (number a, number b, const coeffs r) |
void | nrWrite (number a, const coeffs r) |
const char * | nrRead (const char *s, number *a, const coeffs r) |
BOOLEAN | nrDBTest (number a, const coeffs r, const char *f, const int l) |
nMapFunc | nrSetMap (const coeffs src, const coeffs dst) |
Get a mapping function from src into the domain of this type: n_R. More... | |
number | nrMapQ (number from, const coeffs r, const coeffs aRing) |
float | nrFloat (number n) |
Converts a n_R number into a float. Needed by Maps. More... | |
void | nrCoeffWrite (const coeffs r, BOOLEAN) |
int | nrSize (number n, const coeffs) |
BOOLEAN | nrDBTest (number a, const char *f, const int l, const coeffs r) |
static number | nrMapP (number from, const coeffs aRing, const coeffs r) |
static number | nrMapLongR (number from, const coeffs aRing, const coeffs r) |
static number | nrMapC (number from, const coeffs aRing, const coeffs r) |
number | nrMapZ (number from, const coeffs aRing, const coeffs r) |
static char * | nrCoeffString (const coeffs r) |
BOOLEAN | nrInitChar (coeffs n, void *p) |
Initialize r. More... | |
Variables | |
static const n_coeffType | ID = n_R |
Our Type! More... | |
static const float | nrEps = 1.0e-3 |
Definition at line 144 of file shortfl.cc.
Definition at line 728 of file shortfl.cc.
Definition at line 84 of file shortfl.cc.
Definition at line 415 of file shortfl.cc.
Definition at line 233 of file shortfl.cc.
Definition at line 274 of file shortfl.cc.
float nrFloat | ( | number | n | ) |
Converts a n_R number into a float. Needed by Maps.
Definition at line 78 of file shortfl.cc.
Definition at line 267 of file shortfl.cc.
Definition at line 91 of file shortfl.cc.
Definition at line 108 of file shortfl.cc.
Initialize r.
Definition at line 733 of file shortfl.cc.
Definition at line 119 of file shortfl.cc.
Definition at line 247 of file shortfl.cc.
Definition at line 224 of file shortfl.cc.
Definition at line 215 of file shortfl.cc.
Definition at line 208 of file shortfl.cc.
Definition at line 442 of file shortfl.cc.
Definition at line 433 of file shortfl.cc.
Definition at line 423 of file shortfl.cc.
Definition at line 453 of file shortfl.cc.
Definition at line 538 of file shortfl.cc.
Definition at line 98 of file shortfl.cc.
Definition at line 260 of file shortfl.cc.
Definition at line 344 of file shortfl.cc.
Get a mapping function from src into the domain of this type: n_R.
Definition at line 697 of file shortfl.cc.
Definition at line 132 of file shortfl.cc.
Definition at line 176 of file shortfl.cc.
Definition at line 282 of file shortfl.cc.
|
static |
Our Type!
Definition at line 27 of file shortfl.cc.
|
static |
Definition at line 60 of file shortfl.cc.