My Project
Loading...
Searching...
No Matches
Functions
ntupel.h File Reference
#include "misc/auxiliary.h"

Go to the source code of this file.

Functions

BOOLEAN nnInitChar (coeffs r, void *)
 Initialize r. More...
 

Function Documentation

◆ nnInitChar()

BOOLEAN nnInitChar ( coeffs  r,
void *  p 
)

Initialize r.

Definition at line 616 of file ntupel.cc.

617{
618 n->data=p;
619 n->type=n_nTupel;
620 n->is_field=TRUE;
621 n->is_domain=TRUE;
622
623 n->ch = 0;
624 n->cfCoeffString = nnCoeffString;
625 n->cfCoeffName = nnCoeffName;
626
627 n->cfInit = nnInit;
628 n->cfDelete = nnDelete;
629 n->cfInt = nnInt;
630 n->cfAdd = nnAdd;
631 n->cfInpAdd = nnInpAdd;
632 n->cfSub = nnSub;
633 n->cfMult = nnMult;
634 n->cfInpMult = nnInpMult;
635 n->cfDiv = nnDiv;
636 n->cfExactDiv= nnDiv;
637 n->cfInpNeg = nnInpNeg;
638 n->cfInvers= nnInvers;
639 n->cfCopy = nnCopy;
640 n->cfGreater = nnGreater;
641 n->cfEqual = nnEqual;
642 n->cfIsZero = nnIsZero;
643 n->cfIsOne = nnIsOne;
644 n->cfIsMOne = nnIsMOne;
645 n->cfGreaterZero = nnGreaterZero;
646 n->cfWriteShort = nnWriteShort;
647 n->cfWriteLong = nnWriteLong;
648 n->cfRead = nnRead;
649 //n->cfPower = nnPower;
650 n->cfSetMap = nnSetMap;
651 n->cfCoeffWrite = nnCoeffWrite;
652
653 n->cfChineseRemainder=nnChineseRemainder;
654 n->cfSize = nnSize;
655#ifdef LDEBUG
656 n->cfDBTest=nnDBTest;
657#endif
658 //n->nCoeffIsEqual = ndCoeffIsEqual;
659 return FALSE;
660}
#define TRUE
Definition: auxiliary.h:100
#define FALSE
Definition: auxiliary.h:96
int p
Definition: cfModGcd.cc:4078
@ n_nTupel
n-tupel of cf: ZZ/p1,... ZZ/pn, R, long_R
Definition: coeffs.h:42
static BOOLEAN nnIsZero(number a, const coeffs r)
Definition: ntupel.cc:221
static char * nnCoeffName(const coeffs r)
Definition: ntupel.cc:574
static BOOLEAN nnDBTest(number a, const char *f, const int l, const coeffs r)
Definition: ntupel.cc:512
static BOOLEAN nnIsMOne(number a, const coeffs r)
Definition: ntupel.cc:247
static number nnCopy(number a, const coeffs r)
Definition: ntupel.cc:145
static number nnDiv(number a, number b, const coeffs r)
Definition: ntupel.cc:260
static number nnAdd(number a, number b, const coeffs r)
Definition: ntupel.cc:165
static void nnDelete(number *a, const coeffs r)
Definition: ntupel.cc:590
static number nnInpNeg(number a, const coeffs r)
Definition: ntupel.cc:311
static void nnWriteShort(number a, const coeffs r)
Definition: ntupel.cc:362
static BOOLEAN nnEqual(number a, number b, const coeffs r)
Definition: ntupel.cc:348
static number nnInit(long l, const coeffs r)
Definition: ntupel.cc:92
static long nnInt(number &n, const coeffs r)
Definition: ntupel.cc:114
static number nnMult(number a, number b, const coeffs r)
Definition: ntupel.cc:54
static BOOLEAN nnGreaterZero(number k, const coeffs r)
Definition: ntupel.cc:41
static const char * nnRead(const char *s, number *a, const coeffs r)
Definition: ntupel.cc:411
static BOOLEAN nnGreater(number a, number b, const coeffs r)
Definition: ntupel.cc:330
static nMapFunc nnSetMap(const coeffs, const coeffs)
Definition: ntupel.cc:549
static number nnInvers(number a, const coeffs r)
Definition: ntupel.cc:286
static number nnSub(number a, number b, const coeffs r)
Definition: ntupel.cc:200
static void nnCoeffWrite(const coeffs r, BOOLEAN b)
Definition: ntupel.cc:27
static BOOLEAN nnIsOne(number a, const coeffs r)
Definition: ntupel.cc:234
static int nnSize(number n, const coeffs r)
Definition: ntupel.cc:127
static number nnChineseRemainder(number *, number *, int, BOOLEAN, CFArray &, const coeffs)
Definition: ntupel.cc:609
static void nnInpAdd(number &a, number b, const coeffs r)
Definition: ntupel.cc:186
static void nnWriteLong(number a, const coeffs r)
Definition: ntupel.cc:376
static void nnInpMult(number &a, number b, const coeffs r)
Definition: ntupel.cc:75
static char * nnCoeffString(const coeffs r)
Definition: ntupel.cc:554