My Project
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
CSpecialPairMultiplier Class Referenceabstract

#include <ncSAMult.h>

Public Types

typedef int CExponent
 

Public Member Functions

 CSpecialPairMultiplier (ring r, int i, int j)
 
virtual ~CSpecialPairMultiplier ()
 
int GetI () const
 
int GetJ () const
 
virtual poly MultiplyEE (const CExponent expLeft, const CExponent expRight)=0
 
virtual poly MultiplyME (const poly pMonom, const CExponent expRight)
 
virtual poly MultiplyEM (const CExponent expLeft, const poly pMonom)
 
- Public Member Functions inherited from CMultiplier< int >
 CMultiplier (ring rBaseRing)
 
virtual ~CMultiplier ()
 
ring GetBasering () const
 
int NVars () const
 
poly LM (const poly pTerm, const ring r, int i=1) const
 
poly MultiplyTE (const poly pTerm, const int expRight)
 
poly MultiplyET (const int expLeft, const poly pTerm)
 
virtual poly MultiplyEE (const int expLeft, const int expRight)=0
 
virtual poly MultiplyME (const poly pMonom, const int expRight)=0
 
virtual poly MultiplyEM (const int expLeft, const poly pMonom)=0
 

Private Attributes

int m_i
 
int m_j
 

Additional Inherited Members

- Protected Attributes inherited from CMultiplier< int >
const ring m_basering
 
const int m_NVars
 

Detailed Description

Definition at line 93 of file ncSAMult.h.

Member Typedef Documentation

◆ CExponent

Definition at line 112 of file ncSAMult.h.

Constructor & Destructor Documentation

◆ CSpecialPairMultiplier()

CSpecialPairMultiplier::CSpecialPairMultiplier ( ring  r,
int  i,
int  j 
)

Definition at line 1060 of file ncSAMult.cc.

1060 :
1061 CMultiplier<int>(r), m_i(i), m_j(j)
1062{
1063#if OUTPUT
1064 Print("CSpecialPairMultiplier::CSpecialPairMultiplier(ring, i: %d, j: %d)!", i, j);
1065 PrintLn();
1066#endif
1067
1068 assume(i < j);
1069 assume(i > 0);
1070 assume(j <= NVars());
1071}
int i
Definition: cfEzgcd.cc:132
int NVars() const
Definition: ncSAMult.h:36
#define Print
Definition: emacs.cc:80
int j
Definition: facHensel.cc:110
#define assume(x)
Definition: mod2.h:389
void PrintLn()
Definition: reporter.cc:310

◆ ~CSpecialPairMultiplier()

CSpecialPairMultiplier::~CSpecialPairMultiplier ( )
virtual

Definition at line 1074 of file ncSAMult.cc.

1075{
1076#if OUTPUT
1077 PrintS("CSpecialPairMultiplier::~CSpecialPairMultiplier()!");
1078 PrintLn();
1079#endif
1080}
void PrintS(const char *s)
Definition: reporter.cc:284

Member Function Documentation

◆ GetI()

int CSpecialPairMultiplier::GetI ( ) const
inline

Definition at line 108 of file ncSAMult.h.

108{ return m_i; } // X

◆ GetJ()

int CSpecialPairMultiplier::GetJ ( ) const
inline

Definition at line 109 of file ncSAMult.h.

109{ return m_j; } // Y > X!

◆ MultiplyEE()

virtual poly CSpecialPairMultiplier::MultiplyEE ( const CExponent  expLeft,
const CExponent  expRight 
)
pure virtual

◆ MultiplyEM()

poly CSpecialPairMultiplier::MultiplyEM ( const CExponent  expLeft,
const poly  pMonom 
)
virtual

Implements CMultiplier< int >.

Definition at line 1097 of file ncSAMult.cc.

1098{
1099#if OUTPUT
1100 Print("CSpecialPairMultiplier::MultiplyEM(var(%d)^{%d}, monom)!", GetJ(), expLeft);
1101 PrintLn();
1102 PrintS("Monom: "); p_Write(pMonom, GetBasering());
1103#endif
1104
1105 return MultiplyEE(expLeft, p_GetExp(pMonom, GetI(), GetBasering()));
1106}
ring GetBasering() const
Definition: ncSAMult.h:35
int GetI() const
Definition: ncSAMult.h:108
int GetJ() const
Definition: ncSAMult.h:109
virtual poly MultiplyEE(const CExponent expLeft, const CExponent expRight)=0
void p_Write(poly p, ring lmRing, ring tailRing)
Definition: polys0.cc:342
static long p_GetExp(const poly p, const unsigned long iBitmask, const int VarOffset)
get a single variable exponent @Note: the integer VarOffset encodes:
Definition: p_polys.h:467

◆ MultiplyME()

poly CSpecialPairMultiplier::MultiplyME ( const poly  pMonom,
const CExponent  expRight 
)
virtual

Implements CMultiplier< int >.

Definition at line 1085 of file ncSAMult.cc.

1086{
1087#if OUTPUT
1088 Print("CSpecialPairMultiplier::MultiplyME(monom, var(%d)^{%d})!", GetI(), expRight);
1089 PrintLn();
1090 PrintS("Monom: "); p_Write(pMonom, GetBasering());
1091#endif
1092
1093 return MultiplyEE(p_GetExp(pMonom, GetJ(), GetBasering()), expRight);
1094}

Field Documentation

◆ m_i

int CSpecialPairMultiplier::m_i
private

Definition at line 96 of file ncSAMult.h.

◆ m_j

int CSpecialPairMultiplier::m_j
private

Definition at line 97 of file ncSAMult.h.


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