Changeset 3edea1 in git
- Timestamp:
- Feb 19, 2021, 9:18:42 PM (2 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- c862f03b61a6c0dba7a6e4eb197ceb7ac0304b53
- Parents:
- 33dd62182b65166a5cf7662ec505fa7b3f4b17a3
- Location:
- factory
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/Makefile.am
r33dd62 r3edea1 4 4 5 5 AM_CPPFLAGS = -I${builddir}/include -I${srcdir}/include -I${srcdir} \ 6 -DFACTORY_BUILDING_DLL \ 6 7 $(OMALLOC_INCLUDES) $(RESOURCES_INCLUDES) \ 7 8 $(FLINT_CFLAGS) $(NTL_CPPFLAGS) $(GMP_CPPFLAGS) $(SINGULAR_CFLAGS) … … 12 13 $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) 13 14 14 libfactory_la_LDFLAGS = $(SINGULAR_LDFLAGS) -release ${PACKAGE_VERSION}15 libfactory_la_LDFLAGS = -no-undefined $(SINGULAR_LDFLAGS) -release ${PACKAGE_VERSION} 15 16 16 17 # factory source files -
factory/canonicalform.h
r33dd62 r3edea1 76 76 * @sa int_poly.h, variable.h, ffops.h, gfops.h, imm.h, int_int.h, int_rat.h 77 77 **/ 78 class CanonicalForm78 class FACTORY_PUBLIC CanonicalForm 79 79 #ifdef HAVE_OMALLOC 80 80 #ifndef XMEMORY_H … … 179 179 friend CF_NO_INLINE CanonicalForm operator - ( const CanonicalForm& ); 180 180 181 friend void divrem ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& );181 friend void FACTORY_PUBLIC divrem ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& ); 182 182 friend bool divremt ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& ); 183 183 friend bool tryDivremt ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm&, const CanonicalForm&, bool& ); … … 233 233 CanonicalForm blcm ( const CanonicalForm & f, const CanonicalForm & g ); 234 234 235 CanonicalForm power ( const CanonicalForm & f, int n );236 237 CanonicalForm power ( const Variable & v, int n );235 CanonicalForm FACTORY_PUBLIC power ( const CanonicalForm & f, int n ); 236 237 CanonicalForm FACTORY_PUBLIC power ( const Variable & v, int n ); 238 238 //}}} 239 239 240 240 //{{{ function declarations from cf_gcd.cc 241 CanonicalForm gcd ( const CanonicalForm&, const CanonicalForm& );241 CanonicalForm FACTORY_PUBLIC gcd ( const CanonicalForm&, const CanonicalForm& ); 242 242 243 243 CanonicalForm gcd_poly ( const CanonicalForm & f, const CanonicalForm & g ); … … 259 259 CanonicalForm swapvar ( const CanonicalForm &, const Variable &, const Variable & ); 260 260 261 CanonicalForm replacevar ( const CanonicalForm &, const Variable &, const Variable & );261 CanonicalForm FACTORY_PUBLIC replacevar ( const CanonicalForm &, const Variable &, const Variable & ); 262 262 263 263 int getNumVars( const CanonicalForm & f ); … … 369 369 370 370 //{{{ other function declarations 371 void setCharacteristic( int c ); // -> Fp && Q371 void FACTORY_PUBLIC setCharacteristic( int c ); // -> Fp && Q 372 372 void setCharacteristic( int c, int n ); // -> PrimePower 373 373 void setCharacteristic( int c, int n, char name ); // -> GF(q) 374 374 375 int getCharacteristic();375 int FACTORY_PUBLIC getCharacteristic(); 376 376 int getGFDegree(); 377 377 CanonicalForm getGFGenerator(); 378 378 379 void On( int );380 void Off( int );381 bool isOn( int );379 void FACTORY_PUBLIC On( int ); 380 void FACTORY_PUBLIC Off( int ); 381 bool FACTORY_PUBLIC isOn( int ); 382 382 //}}} 383 383 -
factory/cfCharSets.h
r33dd62 r3edea1 65 65 66 66 /// irreducible characteristic series 67 ListCFList 67 ListCFList FACTORY_PUBLIC 68 68 irrCharSeries (const CFList & PS); 69 69 … … 82 82 83 83 // the same as neworder(...) only returning a list of int 's (i.e. the levels) 84 IntList neworderint (const CFList & PolyList);84 IntList FACTORY_PUBLIC neworderint (const CFList & PolyList); 85 85 86 86 // for library internal use only: -
factory/cfUnivarGcd.cc
r33dd62 r3edea1 7 7 #include "cf_primes.h" 8 8 #include "cfGcdUtil.h" 9 #include "cfUnivarGcd.h" 9 10 10 11 #ifdef HAVE_NTL -
factory/cfUnivarGcd.h
r33dd62 r3edea1 32 32 33 33 /*BEGINPUBLIC*/ 34 CanonicalForm 34 CanonicalForm FACTORY_PUBLIC 35 35 extgcd ( const CanonicalForm & f, const CanonicalForm & g, CanonicalForm & a, CanonicalForm & b ); 36 36 /*ENDPUBLIC*/ -
factory/cf_algorithm.h
r33dd62 r3edea1 37 37 void psqr ( const CanonicalForm & f, const CanonicalForm & g, CanonicalForm & q, CanonicalForm & r, const Variable & x ); 38 38 39 CanonicalForm bCommonDen ( const CanonicalForm & f );39 CanonicalForm FACTORY_PUBLIC bCommonDen ( const CanonicalForm & f ); 40 40 41 41 bool fdivides ( const CanonicalForm & f, const CanonicalForm & g ); … … 51 51 52 52 //{{{ function declarations from cf_chinese.cc 53 void chineseRemainder ( const CanonicalForm & x1, const CanonicalForm & q1, const CanonicalForm & x2, const CanonicalForm & q2, CanonicalForm & xnew, CanonicalForm & qnew );53 void FACTORY_PUBLIC chineseRemainder ( const CanonicalForm & x1, const CanonicalForm & q1, const CanonicalForm & x2, const CanonicalForm & q2, CanonicalForm & xnew, CanonicalForm & qnew ); 54 54 55 void chineseRemainder ( const CFArray & x, const CFArray & q, CanonicalForm & xnew, CanonicalForm & qnew );55 void FACTORY_PUBLIC chineseRemainder ( const CFArray & x, const CFArray & q, CanonicalForm & xnew, CanonicalForm & qnew ); 56 56 57 void chineseRemainderCached ( const CanonicalForm & x1, const CanonicalForm & q1, const CanonicalForm & x2, const CanonicalForm & q2, CanonicalForm & xnew, CanonicalForm & qnew, CFArray &inv );58 void chineseRemainderCached(const CFArray &a, const CFArray &n, CanonicalForm &xnew, CanonicalForm &prod, CFArray &inv);57 void FACTORY_PUBLIC chineseRemainderCached ( const CanonicalForm & x1, const CanonicalForm & q1, const CanonicalForm & x2, const CanonicalForm & q2, CanonicalForm & xnew, CanonicalForm & qnew, CFArray &inv ); 58 void FACTORY_PUBLIC chineseRemainderCached(const CFArray &a, const CFArray &n, CanonicalForm &xnew, CanonicalForm &prod, CFArray &inv); 59 59 60 60 … … 69 69 bool isPurePoly_m(const CanonicalForm & f); 70 70 71 CFFList factorize ( const CanonicalForm & f, bool issqrfree = false );71 CFFList FACTORY_PUBLIC factorize ( const CanonicalForm & f, bool issqrfree = false ); 72 72 73 CFFList factorize ( const CanonicalForm & f, const Variable & alpha );73 CFFList FACTORY_PUBLIC factorize ( const CanonicalForm & f, const Variable & alpha ); 74 74 75 CFFList sqrFree ( const CanonicalForm & f, bool sort= false );75 CFFList FACTORY_PUBLIC sqrFree ( const CanonicalForm & f, bool sort= false ); 76 76 77 77 CanonicalForm homogenize( const CanonicalForm & f, const Variable & x); … … 88 88 bool linearSystemSolve ( CFMatrix & M ); 89 89 90 CanonicalForm determinant ( const CFMatrix & M, int n );90 CanonicalForm FACTORY_PUBLIC determinant ( const CFMatrix & M, int n ); 91 91 //}}} 92 92 … … 94 94 CFArray subResChain ( const CanonicalForm & f, const CanonicalForm & g, const Variable & x ); 95 95 96 CanonicalForm resultant ( const CanonicalForm & f, const CanonicalForm & g, const Variable & x );96 CanonicalForm FACTORY_PUBLIC resultant ( const CanonicalForm & f, const CanonicalForm & g, const Variable & x ); 97 97 //}}} 98 98 -
factory/cf_hnf.h
r33dd62 r3edea1 20 20 **/ 21 21 22 CFMatrix* cf_HNF(CFMatrix& A);22 CFMatrix* FACTORY_PUBLIC cf_HNF(CFMatrix& A); 23 23 24 24 /** … … 42 42 **/ 43 43 44 CFMatrix* cf_LLL(CFMatrix& A);44 CFMatrix* FACTORY_PUBLIC cf_LLL(CFMatrix& A); 45 45 46 46 /*ENDPUBLIC*/ -
factory/cf_inline.cc
r33dd62 r3edea1 79 79 #include "config.h" 80 80 81 #ifdef __CYGWIN__ 82 #undef CF_USE_INLINE 83 #endif 81 84 82 85 #include "cf_assert.h" … … 499 502 * @sa CanonicalForm::operator +=() 500 503 **/ 504 #ifdef CF_USE_INLINE 501 505 CF_INLINE CanonicalForm 506 #else 507 CF_INLINE CanonicalForm FACTORY_PUBLIC 508 #endif 502 509 operator + ( const CanonicalForm & lhs, const CanonicalForm & rhs ) 503 510 { … … 508 515 509 516 #ifndef INCL_CF_INLINE_CC 517 CF_INLINE CanonicalForm FACTORY_PUBLIC 518 operator - ( const CanonicalForm & lhs, const CanonicalForm & rhs ) 519 { 520 CanonicalForm result( lhs ); 521 result -= rhs; 522 return result; 523 } 524 #endif 525 526 /** 527 * @sa CanonicalForm::operator *=() 528 **/ 529 #ifdef CF_USE_INLINE 510 530 CF_INLINE CanonicalForm 511 operator - ( const CanonicalForm & lhs, const CanonicalForm & rhs ) 512 { 513 CanonicalForm result( lhs ); 514 result -= rhs; 515 return result; 516 } 517 #endif 518 519 /** 520 * @sa CanonicalForm::operator *=() 521 **/ 522 CF_INLINE CanonicalForm 531 #else 532 CF_INLINE CanonicalForm FACTORY_PUBLIC 533 #endif 523 534 operator * ( const CanonicalForm & lhs, const CanonicalForm & rhs ) 524 535 { … … 532 543 * @sa CanonicalForm::operator /=() 533 544 **/ 534 CF_INLINE CanonicalForm 545 CF_INLINE CanonicalForm FACTORY_PUBLIC 535 546 operator / ( const CanonicalForm & lhs, const CanonicalForm & rhs ) 536 547 { … … 543 554 * @sa CanonicalForm::operator %=() 544 555 **/ 545 CF_INLINE CanonicalForm 556 CF_INLINE CanonicalForm FACTORY_PUBLIC 546 557 operator % ( const CanonicalForm & lhs, const CanonicalForm & rhs ) 547 558 { -
factory/cf_iter.h
r33dd62 r3edea1 42 42 * variable 43 43 **/ 44 class CFIterator {44 class FACTORY_PUBLIC CFIterator { 45 45 private: 46 46 CanonicalForm data; -
factory/cf_primes.h
r33dd62 r3edea1 10 10 #define INCL_CF_PRIMES_H 11 11 12 // #include "config.h"12 #include "globaldefs.h" 13 13 14 14 /*BEGINPUBLIC*/ 15 15 16 int cf_getPrime( int i );16 int FACTORY_PUBLIC cf_getPrime( int i ); 17 17 18 int cf_getNumPrimes();18 int FACTORY_PUBLIC cf_getNumPrimes(); 19 19 20 int cf_getSmallPrime( int i );20 int FACTORY_PUBLIC cf_getSmallPrime( int i ); 21 21 22 int cf_getNumSmallPrimes();22 int FACTORY_PUBLIC cf_getNumSmallPrimes(); 23 23 24 int cf_getBigPrime( int i );24 int FACTORY_PUBLIC cf_getBigPrime( int i ); 25 25 26 int cf_getNumBigPrimes();26 int FACTORY_PUBLIC cf_getNumBigPrimes(); 27 27 28 28 /*ENDPUBLIC*/ -
factory/cf_random.h
r33dd62 r3edea1 94 94 95 95 /// random seed initializer 96 void factoryseed( int s );96 void FACTORY_PUBLIC factoryseed( int s ); 97 97 98 98 /*ENDPUBLIC*/ -
factory/cf_roots.h
r33dd62 r3edea1 2 2 #define CF_ROOTS_H 3 3 4 int* Zp_roots (const CanonicalForm f);4 int* FACTORY_PUBLIC Zp_roots (const CanonicalForm f); 5 5 6 6 -
factory/cf_util.cc
r33dd62 r3edea1 15 15 #include "globaldefs.h" 16 16 #include "config.h" 17 #include "cf_util.h" 17 18 18 19 -
factory/cf_util.h
r33dd62 r3edea1 10 10 /*BEGINPUBLIC*/ 11 11 int igcd (int a, int b); 12 int ipower ( int b, int n );12 int FACTORY_PUBLIC ipower ( int b, int n ); 13 13 void factoryError_intern(const char *s); 14 14 EXTERN_VAR void (*factoryError)(const char *s); -
factory/facAbsFact.h
r33dd62 r3edea1 39 39 /// Q[t]/(t), 1 is returned), and the multiplicity of the 40 40 /// absolute irreducible factor 41 CFAFList absFactorize (const CanonicalForm& G ///<[in] poly over Q41 CFAFList FACTORY_PUBLIC absFactorize (const CanonicalForm& G ///<[in] poly over Q 42 42 ); 43 43 /*ENDPUBLIC*/ -
factory/facIrredTest.h
r33dd62 r3edea1 38 38 /// @return probIrredTest returns 1 for irreducibility, -1 for reducibility 39 39 /// or 0 if the test is not applicable 40 int probIrredTest (const CanonicalForm& F, ///< [in] some poly over Z/p40 int FACTORY_PUBLIC probIrredTest (const CanonicalForm& F, ///< [in] some poly over Z/p 41 41 double error ///< [in] 0 < error < 1 42 42 ); -
factory/facMul.h
r33dd62 r3edea1 73 73 /// 74 74 /// @sa divrem2() 75 void divrem (75 void FACTORY_PUBLIC divrem ( 76 76 const CanonicalForm& F, ///< [in] multivariate, compressed polynomial 77 77 const CanonicalForm& G, ///< [in] multivariate, compressed polynomial -
factory/factory.template
r33dd62 r3edea1 24 24 25 25 #include "factory/factoryconf.h" 26 #include "factory/globaldefs.h" 26 27 #include <stdint.h> 27 28 #include "factory/si_log2.h" -
factory/gf_tabutil.h
r33dd62 r3edea1 12 12 // #include "config.h" 13 13 14 int gf_tab_numdigits62 ( int q );14 int FACTORY_PUBLIC gf_tab_numdigits62 ( int q ); 15 15 16 16 char conv62 ( int i ); … … 20 20 int convback62 ( char c ); 21 21 22 int convertback62 ( char * p, int n );22 int FACTORY_PUBLIC convertback62 ( char * p, int n ); 23 23 24 24 #endif /* ! INCL_GF_TABUTIL_H */ -
factory/globaldefs.h
r33dd62 r3edea1 16 16 #endif 17 17 18 #if defined(__CYGWIN__) 19 #ifdef FACTORY_BUILDING_DLL 20 #define FACTORY_PUBLIC __declspec(dllexport) 21 #else 22 #define FACTORY_PUBLIC __declspec(dllimport) 23 #endif 24 #else 25 #define FACTORY_PUBLIC 26 #endif 27 18 28 #endif // _SINGULAR_GLOBALDEFS_H -
factory/include/factory/templates/ftmpl_array.h
r33dd62 r3edea1 15 15 16 16 template <class T> 17 class Array {17 class FACTORY_PUBLIC Array { 18 18 private: 19 19 T * data; -
factory/include/factory/templates/ftmpl_list.h
r33dd62 r3edea1 49 49 50 50 template <class T> 51 class List51 class FACTORY_PUBLIC List 52 52 { 53 53 private: … … 85 85 86 86 template <class T> 87 class ListIterator {87 class FACTORY_PUBLIC ListIterator { 88 88 private: 89 89 List<T> *theList; -
factory/include/factory/templates/ftmpl_matrix.h
r33dd62 r3edea1 26 26 27 27 template <class T> 28 class Matrix28 class FACTORY_PUBLIC Matrix 29 29 { 30 30 private: -
factory/singext.h
r33dd62 r3edea1 21 21 /*BEGINPUBLIC*/ 22 22 23 void gmp_numerator ( const CanonicalForm & f, mpz_ptr result );23 void FACTORY_PUBLIC gmp_numerator ( const CanonicalForm & f, mpz_ptr result ); 24 24 25 void gmp_denominator ( const CanonicalForm & f, mpz_ptr result );25 void FACTORY_PUBLIC gmp_denominator ( const CanonicalForm & f, mpz_ptr result ); 26 26 27 27 int gf_value (const CanonicalForm & f ); 28 28 29 CanonicalForm make_cf ( const mpz_ptr n );29 CanonicalForm FACTORY_PUBLIC make_cf ( const mpz_ptr n ); 30 30 31 CanonicalForm make_cf ( const mpz_ptr n, const mpz_ptr d, bool normalize );31 CanonicalForm FACTORY_PUBLIC make_cf ( const mpz_ptr n, const mpz_ptr d, bool normalize ); 32 32 33 33 CanonicalForm make_cf_from_gf ( const int z ); -
factory/variable.h
r33dd62 r3edea1 30 30 * factory's class for variables 31 31 **/ 32 class Variable32 class FACTORY_PUBLIC Variable 33 33 { 34 34 private: … … 90 90 * @note: algebraic variables have a level < 0 91 91 **/ 92 Variable rootOf( const CanonicalForm &, char name = '@' );92 Variable FACTORY_PUBLIC rootOf( const CanonicalForm &, char name = '@' ); 93 93 94 94 inline int level( const Variable & v ) { return v.level(); } … … 103 103 char getDefaultExtName(); 104 104 105 void prune (Variable& alpha);105 void FACTORY_PUBLIC prune (Variable& alpha); 106 106 void prune1 (const Variable& alpha); 107 107 int ExtensionLevel();
Note: See TracChangeset
for help on using the changeset viewer.