Changeset b5f2548 in git
- Timestamp:
- Aug 26, 2014, 11:16:33 AM (9 years ago)
- Branches:
- (u'spielwiese', '91e5db82acc17434e4062bcfa44e6efa7d41fd30')
- 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
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_cyclo.cc
r8c5f4b rb5f2548 26 26 #endif 27 27 28 29 /// integer factorization using table look-ups,30 /// function may fail if integer contains primes which exceed the largest prime31 /// in our table32 28 int* integerFactorizer (const long integer, int& length, bool& fail) 33 29 { … … 110 106 } 111 107 112 /// compute the n-th cyclotomic polynomial,113 /// function may fail if integer_factorizer fails to factorize n114 108 CanonicalForm cyclotomicPoly (int n, bool& fail) 115 109 { … … 138 132 139 133 #ifdef HAVE_NTL 140 /// checks if alpha is a primitive element, alpha is assumed to be an algebraic141 /// variable over some finite prime field142 134 bool isPrimitive (const Variable& alpha, bool& fail) 143 135 { -
factory/cf_cyclo.h
r8c5f4b rb5f2548 17 17 // #include "config.h" 18 18 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 22 int* 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 29 CanonicalForm 30 cyclotomicPoly (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 36 bool isPrimitive (const Variable& alpha, ///< [in] some algebraic variable 37 bool& fail ///< [in,out] failure? 38 ); 22 39 23 40 #endif
Note: See TracChangeset
for help on using the changeset viewer.