Changeset b5f2548 in git for factory


Ignore:
Timestamp:
Aug 26, 2014, 11:16:33 AM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
91695f2af09f5a3a05d6d8c4ee652802f6d85b68
Parents:
8c5f4b2e320efaafe00bfaf0910c580fa48ffc9d
git-author:
Martin Lee <martinlee84@web.de>2014-08-26 11:16:33+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-08-26 12:29:12+02:00
Message:
moved docu from .cc to .h
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_cyclo.cc

    r8c5f4b rb5f2548  
    2626#endif
    2727
    28 
    29 /// integer factorization using table look-ups,
    30 /// function may fail if integer contains primes which exceed the largest prime
    31 /// in our table
    3228int* integerFactorizer (const long integer, int& length, bool& fail)
    3329{
     
    110106}
    111107
    112 /// compute the n-th cyclotomic polynomial,
    113 /// function may fail if integer_factorizer fails to factorize n
    114108CanonicalForm cyclotomicPoly (int n, bool& fail)
    115109{
     
    138132
    139133#ifdef HAVE_NTL
    140 /// checks if alpha is a primitive element, alpha is assumed to be an algebraic
    141 /// variable over some finite prime field
    142134bool isPrimitive (const Variable& alpha, bool& fail)
    143135{
  • factory/cf_cyclo.h

    r8c5f4b rb5f2548  
    1717// #include "config.h"
    1818
    19 int* integerFactorizer (const long integer, int& length, bool& fail);
    20 CanonicalForm cyclotomicPoly (int n, bool& fail);
    21 bool isPrimitive (const Variable& alpha, bool& fail);
     19/// integer factorization using table look-ups,
     20/// function may fail if integer contains primes which exceed the largest prime
     21/// in our table
     22int* integerFactorizer (const long integer, ///< [in] some integer
     23                        int& length,        ///< [in,out] number of factors
     24                        bool& fail          ///< [in,out] failure?
     25                       );
     26
     27/// compute the n-th cyclotomic polynomial,
     28/// function may fail if integer_factorizer fails to factorize n
     29CanonicalForm
     30cyclotomicPoly (int n,     ///< [in] some integer
     31                bool& fail ///< [in,out] failure?
     32               );
     33
     34/// checks if alpha is a primitive element, alpha is assumed to be an algebraic
     35/// variable over some finite prime field
     36bool isPrimitive (const Variable& alpha, ///< [in] some algebraic variable
     37                  bool& fail             ///< [in,out] failure?
     38                 );
    2239
    2340#endif
Note: See TracChangeset for help on using the changeset viewer.