My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
AFactor< T > Class Template Reference

#include <ftmpl_afactor.h>

Public Member Functions

 AFactor ()
 
 AFactor (const AFactor< T > &f)
 
 AFactor (const T &f, const T &m, int e)
 
 AFactor (const T &f, const T &m)
 
 ~AFactor ()
 
AFactor< T > & operator= (const AFactor< T > &)
 
T factor () const
 
T minpoly () const
 
int exp () const
 
T value () const
 
void print (OSTREAM &) const
 

Private Attributes

T _factor
 
T _minpoly
 
int _exp
 

Detailed Description

template<class T>
class AFactor< T >

Definition at line 17 of file ftmpl_afactor.h.

Constructor & Destructor Documentation

◆ AFactor() [1/4]

template<class T >
AFactor< T >::AFactor ( )
inline

Definition at line 23 of file ftmpl_afactor.h.

23: _factor(1), _minpoly (1), _exp(0) {}

◆ AFactor() [2/4]

template<class T >
AFactor< T >::AFactor ( const AFactor< T > &  f)
inline

Definition at line 24 of file ftmpl_afactor.h.

24: _factor(f._factor), _minpoly (f._minpoly), _exp(f._exp) {}
FILE * f
Definition: checklibs.c:9

◆ AFactor() [3/4]

template<class T >
AFactor< T >::AFactor ( const T f,
const T m,
int  e 
)
inline

Definition at line 25 of file ftmpl_afactor.h.

25: _factor(f), _minpoly (m), _exp(e) {}
int m
Definition: cfEzgcd.cc:128

◆ AFactor() [4/4]

template<class T >
AFactor< T >::AFactor ( const T f,
const T m 
)
inline

Definition at line 26 of file ftmpl_afactor.h.

26: _factor(f), _minpoly (m), _exp(1) {}

◆ ~AFactor()

template<class T >
AFactor< T >::~AFactor ( )
inline

Definition at line 27 of file ftmpl_afactor.h.

27{}

Member Function Documentation

◆ exp()

template<class T >
int AFactor< T >::exp ( ) const
inline

Definition at line 31 of file ftmpl_afactor.h.

31{ return _exp; }

◆ factor()

template<class T >
T AFactor< T >::factor ( ) const
inline

Definition at line 29 of file ftmpl_afactor.h.

29{ return _factor; }

◆ minpoly()

template<class T >
T AFactor< T >::minpoly ( ) const
inline

Definition at line 30 of file ftmpl_afactor.h.

30{ return _minpoly; }

◆ operator=()

template<class T >
AFactor< T > & AFactor< T >::operator= ( const AFactor< T > &  f)

Definition at line 6 of file ftmpl_afactor.cc.

7{
8 if ( this != &f )
9 {
10 _minpoly = f._minpoly;
11 _factor = f._factor;
12 _exp = f._exp;
13 }
14 return *this;
15}

◆ print()

template<class T >
void AFactor< T >::print ( OSTREAM s) const

Definition at line 25 of file ftmpl_afactor.cc.

26{
27 if ( exp() == 1 )
28 s << "(" << factor() << ", " << minpoly() << ")";
29 else
30 s << "((" << factor() << ")^" << exp() << ", " << minpoly() << ")";
31}
T minpoly() const
Definition: ftmpl_afactor.h:30
int exp() const
Definition: ftmpl_afactor.h:31
T factor() const
Definition: ftmpl_afactor.h:29
const CanonicalForm int s
Definition: facAbsFact.cc:51

◆ value()

template<class T >
T AFactor< T >::value ( ) const
inline

Definition at line 32 of file ftmpl_afactor.h.

32{ return power( _factor, _exp ); }
CanonicalForm power(const CanonicalForm &f, int n)
exponentiation

Field Documentation

◆ _exp

template<class T >
int AFactor< T >::_exp
private

Definition at line 21 of file ftmpl_afactor.h.

◆ _factor

template<class T >
T AFactor< T >::_factor
private

Definition at line 19 of file ftmpl_afactor.h.

◆ _minpoly

template<class T >
T AFactor< T >::_minpoly
private

Definition at line 20 of file ftmpl_afactor.h.


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