My Project
Loading...
Searching...
No Matches
Functions
ftmpl_afactor.cc File Reference
#include "factory/templates/ftmpl_afactor.h"

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 comparision may not be enough but checking the fields they define are equal
21}
T minpoly() const
Definition: ftmpl_afactor.h:30
int exp() const
Definition: ftmpl_afactor.h:31
T factor() const
Definition: ftmpl_afactor.h:29