#include <semic.h>
Definition at line 63 of file semic.h.
◆ spectrum() [1/2]
Zero constructor.
Definition at line 77 of file semic.h.
void copy_zero(void)
Initialize with zero.
◆ spectrum() [2/2]
Definition at line 36 of file semic.cc.
void copy_deep(const spectrum &)
◆ ~spectrum()
Definition at line 45 of file semic.cc.
void copy_delete(void)
Delete the memory of a spectrum.
◆ add_subspectrum()
int spectrum::add_subspectrum |
( |
spectrum & |
a, |
|
|
int |
k |
|
) |
| |
◆ copy_deep()
◆ copy_delete()
void spectrum::copy_delete |
( |
void |
| ) |
|
|
inline |
Delete the memory of a spectrum.
Definition at line 100 of file semic.h.
103 if(
w != (
int*)
NULL &&
n > 0 )
delete []
w;
◆ copy_new()
void spectrum::copy_new |
( |
int |
k | ) |
|
Definition at line 54 of file semic.cc.
66 cerr <<
"spectrum::copy_new(" <<
k <<
")" << endl;
67 cerr <<
" returned ZERO!!!" << endl;
68 cerr <<
" exit..." << endl;
70 fprintf( stderr,
"spectrum::copy_new( %d )\n",
k );
71 fprintf( stderr,
" returned ZERO!!!\n" );
72 fprintf( stderr,
" exit...\n" );
87 cerr <<
"spectrum::copy_new(" <<
k <<
")";
88 cerr <<
": k < 0 ..." << endl;
90 fprintf( stderr,
"spectrum::copy_new( %d )",
k );
91 fprintf( stderr,
": k < 0 ...\n" );
◆ copy_shallow()
void spectrum::copy_shallow |
( |
spectrum & |
spec | ) |
|
|
inline |
Initialize shallow from another spectrum.
Definition at line 118 of file semic.h.
◆ copy_zero()
void spectrum::copy_zero |
( |
void |
| ) |
|
|
inline |
Initialize with zero.
Definition at line 108 of file semic.h.
◆ mult_spectrum()
int spectrum::mult_spectrum |
( |
spectrum & |
t | ) |
|
Definition at line 396 of file semic.cc.
int next_interval(Rational *, Rational *)
int numbers_in_interval(Rational &, Rational &, interval_status)
void mult(unsigned long *result, unsigned long *a, unsigned long *b, unsigned long p, int dega, int degb)
◆ mult_spectrumh()
int spectrum::mult_spectrumh |
( |
spectrum & |
t | ) |
|
◆ next_interval()
Definition at line 325 of file semic.cc.
340 if( d1 < d2 || d2 == zero )
int next_number(Rational *)
◆ next_number()
int spectrum::next_number |
( |
Rational * |
alpha | ) |
|
Definition at line 300 of file semic.cc.
304 while( i < n && *alpha >=
s[
i] )
◆ numbers_in_interval()
Definition at line 362 of file semic.cc.
367 for(
int i=0;
i<
n;
i++ )
int status int void size_t count
◆ operator=()
◆ operator*
◆ operator+
Definition at line 134 of file semic.cc.
136 int i1=0, i2=0, i3=0;
146 else if( i2 >= s2.
n )
150 else if( s1.
s[i1] < s2.
s[i2] )
154 else if( s1.
s[i1] == s2.
s[i2] )
165 while( i1 < s1.
n || i2 < s2.
n );
180 else if( i2 >= s2.
n )
186 else if( s1.
s[i1] < s2.
s[i2] )
192 else if( s1.
s[i1] == s2.
s[i2] )
207 while( i1 < s1.
n || i2 < s2.
n );
◆ operator<<
Definition at line 249 of file semic.cc.
251 for(
int i=0;
i<spec.
n;
i++ )
258 fprintf( stdout,
"+" );
263 s << spec.
w[
i] <<
"*t^";
265 fprintf( stdout,
"%d*t^",spec.
w[
i] );
◆ mu
◆ pg
The documentation for this class was generated from the following files: