![]() |
#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 float | nrEps = 1.0e-3 |
Definition at line 141 of file shortfl.cc.
Definition at line 725 of file shortfl.cc.
Definition at line 81 of file shortfl.cc.
Definition at line 412 of file shortfl.cc.
Definition at line 230 of file shortfl.cc.
Definition at line 271 of file shortfl.cc.
float nrFloat | ( | number | n | ) |
Converts a n_R number into a float. Needed by Maps.
Definition at line 75 of file shortfl.cc.
Definition at line 264 of file shortfl.cc.
Definition at line 88 of file shortfl.cc.
Definition at line 105 of file shortfl.cc.
Initialize r.
Definition at line 730 of file shortfl.cc.
Definition at line 116 of file shortfl.cc.
Definition at line 244 of file shortfl.cc.
Definition at line 221 of file shortfl.cc.
Definition at line 212 of file shortfl.cc.
Definition at line 205 of file shortfl.cc.
Definition at line 439 of file shortfl.cc.
Definition at line 430 of file shortfl.cc.
Definition at line 420 of file shortfl.cc.
Definition at line 450 of file shortfl.cc.
Definition at line 535 of file shortfl.cc.
Definition at line 95 of file shortfl.cc.
Definition at line 257 of file shortfl.cc.
Definition at line 341 of file shortfl.cc.
Get a mapping function from src into the domain of this type: n_R.
Definition at line 694 of file shortfl.cc.
Definition at line 129 of file shortfl.cc.
Definition at line 173 of file shortfl.cc.
Definition at line 279 of file shortfl.cc.
|
static |
Definition at line 57 of file shortfl.cc.