Changeset 102a88e in git for factory


Ignore:
Timestamp:
Apr 12, 2013, 3:33:42 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b79b580d0846a3639786db7a3baa5fe8d310d405
Parents:
b893eca84785476ae5b07f46b47978cbfb2d1b24
git-author:
Martin Lee <martinlee84@web.de>2013-04-12 15:33:42+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-05-02 11:42:36+02:00
Message:
chg: added more functions to templates
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/ftmpl_inst.cc

    rb893ec r102a88e  
    8282
    8383template int operator == ( const Factor<CanonicalForm> &, const Factor<CanonicalForm> & );
     84template int operator == ( const AFactor<CanonicalForm> &, const AFactor<CanonicalForm> & );
    8485
    8586template List<CFFactor> Union ( const List<CFFactor> &, const List<CFFactor> & );
     87template List<CFAFactor> Union ( const List<CFAFactor> &, const List<CFAFactor> & );
    8688
    8789#if ! defined(WINNT) || defined(__GNUC__)
  • factory/templates/ftmpl_afactor.cc

    rb893ec r102a88e  
    1313    }
    1414    return *this;
     15}
     16
     17template <class T>
     18int operator== ( const AFactor<T> &f1, const AFactor<T> &f2 )
     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
    1521}
    1622
  • factory/templates/ftmpl_afactor.h

    rb893ec r102a88e  
    3838};
    3939
     40template <class T> int
     41operator== ( const AFactor<T>&, const AFactor<T>& );
     42
    4043#ifndef NOSTREAMIO
    4144template <class T>
Note: See TracChangeset for help on using the changeset viewer.