Changeset 6deedd in git


Ignore:
Timestamp:
Nov 29, 2011, 2:33:18 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
91788c087460478b3feb0c0461c30cb0383129fe
Parents:
7efef7a73060a49677b3bcf2172e9cdb3b4d76a8
git-author:
Martin Lee <martinlee84@web.de>2011-11-29 14:33:18+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-12-12 18:00:42+01:00
Message:
modified some helper functions and removed unneccessary inclusion of config.h
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd_smallp.h

    r7efef7 r6deedd  
    9797CanonicalForm
    9898randomIrredpoly (int i, const Variable & x) ;
     99
     100CFArray
     101getMonoms (const CanonicalForm& F);
    99102#endif
  • factory/facFqFactorizeUtil.cc

    r7efef7 r6deedd  
    128128}
    129129
    130 CanonicalForm shift2Zero (const CanonicalForm& F, CFList& Feval, const CFList& evaluation)
     130CanonicalForm shift2Zero (const CanonicalForm& F, CFList& Feval, const CFList& evaluation, int l)
    131131{
    132132  CanonicalForm A= F;
    133   int k= A.level();
     133  int k= evaluation.length() + l - 1;
    134134  for (CFListIterator i= evaluation; i.hasItem(); i++, k--)
    135135    A= A (Variable (k) + i.getItem(), k);
     
    145145}
    146146
    147 CanonicalForm reverseShift (const CanonicalForm& F, const CFList& evaluation)
     147CanonicalForm reverseShift (const CanonicalForm& F, const CFList& evaluation, int l)
    148148{
    149   int l= evaluation.length() + 1;
     149  int k= evaluation.length() + l - 1;
    150150  CanonicalForm result= F;
    151151  CFListIterator j= evaluation;
    152   for (int i= l; i > 1; i--, j++)
     152  for (int i= k; j.hasItem() && (i > l - 1); i--, j++)
    153153  {
    154154    if (F.level() < i)
  • factory/facFqFactorizeUtil.h

    r7efef7 r6deedd  
    1717
    1818// #include "config.h"
    19 
    2019#include "canonicalform.h"
    2120#include "cf_map.h"
     
    108107                                     ///< @a F successively evaluated
    109108                                     ///< at 0
    110             const CFList& evaluation ///< [in] a valid evaluation point
     109            const CFList& evaluation,///< [in] a valid evaluation point
     110            int l= 2                 ///< [in] level at which the evaluation
     111                                     ///< starts
    111112           );
    112113
     
    116117/// @sa shift2Zero(), evalPoints()
    117118CanonicalForm reverseShift (const CanonicalForm& F,  ///< [in] a compressed poly
    118                             const CFList& evaluation ///< [in] a valid
     119                            const CFList& evaluation,///< [in] a valid
    119120                                                     ///< evaluation point
     121                            int l= 2                 ///< [in] level at which
     122                                                     ///< the evaluation starts
    120123                           );
    121124
Note: See TracChangeset for help on using the changeset viewer.