My Project
Data Structures | Macros | Functions
ftmpl_afactor.h File Reference
#include <iostream>

Go to the source code of this file.

Data Structures

class  AFactor< T >
 

Macros

#define OSTREAM   std::ostream
 

Functions

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

Macro Definition Documentation

◆ OSTREAM

#define OSTREAM   std::ostream

Definition at line 9 of file ftmpl_afactor.h.

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