My Project
Loading...
Searching...
No Matches
ftmpl_afactor.cc File Reference

Go to the source code of this file.

Functions

template<class T>
int operator== (const AFactor< T > &f1, const AFactor< T > &f2)
 
template<class T>
OSTREAMoperator<< (OSTREAM &os, const AFactor< T > &f)
 

Function Documentation

◆ operator<<()

template<class T>
OSTREAM & operator<< ( OSTREAM & os,
const AFactor< T > & f )

Definition at line 34 of file ftmpl_afactor.cc.

35{
36 f.print( os );
37 return os;
38}
FILE * f
Definition checklibs.c:9

◆ operator==()

template<class T>
int operator== ( const AFactor< T > & f1,
const AFactor< T > & f2 )

Definition at line 18 of file ftmpl_afactor.cc.

19{
20 return (f1.exp() == f2.exp()) && (f1.factor() == f2.factor()) && (f1.minpoly() == f2.minpoly()); //minpoly comparison may not be enough but checking the fields they define are equal
21}
T minpoly() const
int exp() const
T factor() const