My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
nforder_ideal Class Reference

#include <nforder_ideal.h>

Public Member Functions

 nforder_ideal ()
 0 Konstruktoren/Destruktoren /// More...
 
void init ()
 
 nforder_ideal (bigintmat *basis, number *min, number *min_den, number *norm, number *norm_den, const coeffs ord)
 
 nforder_ideal (bigintmat *basis, const coeffs q)
 
 nforder_ideal (nforder_ideal *i, int)
 
 ~nforder_ideal ()
 
void Write ()
 
char * String ()
 
void Print ()
 
number getNorm ()
 
number getNormDen ()
 
number getMin ()
 
number getMinDen ()
 
coeffs order () const
 
bigintmatviewBasis ()
 
bigintmatgetBasis ()
 
number viewBasisDen ()
 
int isFractional ()
 
void setMinTransfer (number a, number b)
 
void setNormTransfer (number a, number b)
 
number viewNorm ()
 
number viewMin ()
 
void setBasisDenTransfer (number a)
 

Private Attributes

number norm
 
number norm_den
 
number min
 
number min_den
 
coeffs ord
 
bigintmatbasis
 
number den
 

Detailed Description

Definition at line 11 of file nforder_ideal.h.

Constructor & Destructor Documentation

◆ nforder_ideal() [1/4]

nforder_ideal::nforder_ideal ( )

0 Konstruktoren/Destruktoren ///

◆ nforder_ideal() [2/4]

nforder_ideal::nforder_ideal ( bigintmat basis,
number *  min,
number *  min_den,
number *  norm,
number *  norm_den,
const coeffs  ord 
)

◆ nforder_ideal() [3/4]

nforder_ideal::nforder_ideal ( bigintmat basis,
const coeffs  q 
)

Definition at line 21 of file nforder_ideal.cc.

21 {
22 init();
23 ord = O;
24 basis = new bigintmat(_basis);
25}
Matrices of numbers.
Definition: bigintmat.h:51
bigintmat * basis
Definition: nforder_ideal.h:19

◆ nforder_ideal() [4/4]

nforder_ideal::nforder_ideal ( nforder_ideal i,
int   
)

Definition at line 27 of file nforder_ideal.cc.

27 {
28 init();
29 ord = I->ord;
30 coeffs C = ((nforder *)ord->data)->basecoeffs();
31 basis = new bigintmat(I->basis);
32 if (I->den) {
33 den = n_Copy(I->den, C);
34 }
35 if (I->norm) {
36 norm = n_Copy(I->norm, C);
37 norm_den = n_Copy(I->norm_den, C);
38 }
39 if (I->min) {
40 min = n_Copy(I->min, C);
41 min_den = n_Copy(I->min_den, C);
42 }
43}
static FORCE_INLINE number n_Copy(number n, const coeffs r)
return a copy of 'n'
Definition: coeffs.h:448
The main handler for Singular numbers which are suitable for Singular polynomials.

◆ ~nforder_ideal()

nforder_ideal::~nforder_ideal ( )

Definition at line 86 of file nforder_ideal.cc.

86 {
87 if (basis) delete basis;
88 coeffs C = ((nforder *)ord->data)->basecoeffs();
89 if (den) n_Delete(&den, C);
90 if (norm) {
91 n_Delete(&norm, C);
92 n_Delete(&norm_den, C);
93 }
94 if (min) {
95 n_Delete(&min, C);
96 n_Delete(&min_den, C);
97 }
98}
static FORCE_INLINE void n_Delete(number *p, const coeffs r)
delete 'p'
Definition: coeffs.h:452

Member Function Documentation

◆ getBasis()

bigintmat * nforder_ideal::getBasis ( )
inline

Definition at line 47 of file nforder_ideal.h.

47{return new bigintmat(basis);};

◆ getMin()

number nforder_ideal::getMin ( )

◆ getMinDen()

number nforder_ideal::getMinDen ( )

◆ getNorm()

number nforder_ideal::getNorm ( )

◆ getNormDen()

number nforder_ideal::getNormDen ( )

◆ init()

void nforder_ideal::init ( )

Definition at line 17 of file nforder_ideal.cc.

17 {
18 memset(this, 0, sizeof(nforder_ideal));
19}

◆ isFractional()

int nforder_ideal::isFractional ( )
inline

Definition at line 49 of file nforder_ideal.h.

49{return den!=NULL;};
#define NULL
Definition: omList.c:12

◆ order()

coeffs nforder_ideal::order ( ) const
inline

Definition at line 45 of file nforder_ideal.h.

45{ return ord; }

◆ Print()

void nforder_ideal::Print ( )

Definition at line 79 of file nforder_ideal.cc.

79 {
80 char * s = String();
81 PrintS(s);
82 PrintS("\n");
83 omFree(s);
84}
char * String()
const CanonicalForm int s
Definition: facAbsFact.cc:51
#define omFree(addr)
Definition: omAllocDecl.h:261
void PrintS(const char *s)
Definition: reporter.cc:284

◆ setBasisDenTransfer()

void nforder_ideal::setBasisDenTransfer ( number  a)
inline

Definition at line 54 of file nforder_ideal.h.

54{den = a;}

◆ setMinTransfer()

void nforder_ideal::setMinTransfer ( number  a,
number  b 
)
inline

Definition at line 50 of file nforder_ideal.h.

50{min = a; min_den = b;}
CanonicalForm b
Definition: cfModGcd.cc:4103

◆ setNormTransfer()

void nforder_ideal::setNormTransfer ( number  a,
number  b 
)
inline

Definition at line 51 of file nforder_ideal.h.

51{norm = a; norm_den = b;}

◆ String()

char * nforder_ideal::String ( )

Definition at line 74 of file nforder_ideal.cc.

74 {
75 StringSetS("");
76 Write();
77 return StringEndS();
78}
void StringSetS(const char *st)
Definition: reporter.cc:128
char * StringEndS()
Definition: reporter.cc:151

◆ viewBasis()

bigintmat * nforder_ideal::viewBasis ( )
inline

Definition at line 46 of file nforder_ideal.h.

46{return basis;};

◆ viewBasisDen()

number nforder_ideal::viewBasisDen ( )
inline

Definition at line 48 of file nforder_ideal.h.

48{return den;};

◆ viewMin()

number nforder_ideal::viewMin ( )
inline

Definition at line 53 of file nforder_ideal.h.

53{ return norm;};

◆ viewNorm()

number nforder_ideal::viewNorm ( )
inline

Definition at line 52 of file nforder_ideal.h.

52{ return norm;};

◆ Write()

void nforder_ideal::Write ( )

Definition at line 45 of file nforder_ideal.cc.

45 {
46 coeffs C = ((nforder *)ord->data)->basecoeffs();
47 if (isFractional()) {
48 StringAppendS("Fractional ");
49 }
50 StringAppend("Ideal with basis:\n");
51 basis->Write();
52 if (isFractional()) {
53 number d;
54 StringAppend(" / ");
55 n_Write((d = viewBasisDen()), C);
56 }
57 StringAppendS("\n");
58 if (norm) {
59 StringAppendS("and norm ");
60 n_Write(norm, C);
61 StringAppendS(" / ");
62 n_Write(norm_den, C);
63 StringAppendS(" ");
64 }
65 if (min) {
66 StringAppendS("and min ");
67 n_Write(min, C);
68 StringAppendS(" / ");
69 n_Write(min_den, C);
70 StringAppendS(" ");
71 }
72}
void Write()
IO: writes the matrix into the current internal string buffer which must be started/ allocated before...
Definition: bigintmat.cc:413
int isFractional()
Definition: nforder_ideal.h:49
number viewBasisDen()
Definition: nforder_ideal.h:48
static FORCE_INLINE void n_Write(number n, const coeffs r, const BOOLEAN bShortOut=TRUE)
Definition: coeffs.h:588
#define StringAppend
Definition: emacs.cc:79
void StringAppendS(const char *st)
Definition: reporter.cc:107

Field Documentation

◆ basis

bigintmat* nforder_ideal::basis
private

Definition at line 19 of file nforder_ideal.h.

◆ den

number nforder_ideal::den
private

Definition at line 20 of file nforder_ideal.h.

◆ min

number nforder_ideal::min
private

Definition at line 17 of file nforder_ideal.h.

◆ min_den

number nforder_ideal::min_den
private

Definition at line 17 of file nforder_ideal.h.

◆ norm

number nforder_ideal::norm
private

Definition at line 17 of file nforder_ideal.h.

◆ norm_den

number nforder_ideal::norm_den
private

Definition at line 17 of file nforder_ideal.h.

◆ ord

coeffs nforder_ideal::ord
private

Definition at line 18 of file nforder_ideal.h.


The documentation for this class was generated from the following files: