Changeset 102a88e in git


Ignore:
Timestamp:
Apr 12, 2013, 3:33:42 PM (9 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '48f1dd268d0ff74ef2f7dccbf02545425002ddcc')
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.