#include <MultInd.h>
Definition at line 50 of file MultInd.h.
◆ MultInd()
MultInd::MultInd |
( |
unsigned |
d = 0 | ) |
|
◆ ~MultInd()
◆ index()
unsigned MultInd::index |
( |
| ) |
|
|
inline |
◆ indexesOfCoefInLexOrder()
unsigned * MultInd::indexesOfCoefInLexOrder |
( |
| ) |
|
Definition at line 214 of file MultInd.cpp.
218 printf(
"use MultIndCache to instanciate MultInd");
219 getchar(); exit(252);
221 return (
unsigned*)indexesOfCoefInLexOrderV.
d->
p;
◆ lastChanges()
unsigned * MultInd::lastChanges |
( |
| ) |
|
Definition at line 204 of file MultInd.cpp.
208 printf(
"use MultIndCache to instanciate MultInd");
209 getchar(); exit(252);
211 return (
unsigned*)lastChangesV.
d->
p;
◆ len()
unsigned MultInd::len |
( |
| ) |
|
Definition at line 96 of file MultInd.cpp.
98 unsigned l=0, *ccDeg=coeffDeg,
j=
dim;
99 while (j--) l+=*(ccDeg++);
◆ operator unsigned *()
MultInd::operator unsigned * |
( |
| ) |
const |
|
inline |
◆ operator++() [1/2]
Definition at line 170 of file MultInd.cpp.
172 unsigned *cc = coeffDeg;
175 if (!n || !cc)
return *
this;
177 for (pos = n-2; pos >= 0; pos--)
183 for (i = pos+1; i <
n;i++)
194 for ( i = 1; i <
n; i++)
◆ operator++() [2/2]
MultInd& MultInd::operator++ |
( |
int |
| ) |
|
|
inline |
◆ operator=()
Definition at line 44 of file MultInd.cpp.
46 dim=p.dim;
deg=p.deg; next=NULL;
47 lastChangesV=p.lastChangesV; indexesOfCoefInLexOrderV=p.indexesOfCoefInLexOrderV;
50 if (
deg==0) memcpy(coeffDeg,p.coeffDeg,
dim*
sizeof(
unsigned));
◆ operator==()
bool MultInd::operator== |
( |
const MultInd & |
m | ) |
|
Definition at line 103 of file MultInd.cpp.
105 unsigned *p1=(*this), *p2=
m,
n=
dim;
107 if (*(p1++)!=*(p2++))
return false;
◆ print()
Definition at line 86 of file MultInd.cpp.
89 if (!
dim) { printf(
"]");
return; }
91 unsigned N=
dim,*up=coeffDeg;
92 while (--N) printf(
"%i,",*(up++));
◆ resetCounter()
void MultInd::resetCounter |
( |
| ) |
|
Definition at line 164 of file MultInd.cpp.
167 memset(coeffDeg,0,
dim*
sizeof(
unsigned));
◆ MultIndCache
◆ deg
◆ dim
The documentation for this class was generated from the following files: