1 | // emacs edit mode for this file is -*- C++ -*- |
---|
2 | /**************************************** |
---|
3 | * Computer Algebra System SINGULAR * |
---|
4 | ****************************************/ |
---|
5 | /* |
---|
6 | * ABSTRACT: interface between Singular and factory |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef INCL_FACTORYSING_H |
---|
10 | #define INCL_FACTORYSING_H |
---|
11 | |
---|
12 | #ifdef HAVE_FACTORY |
---|
13 | |
---|
14 | class bigintmat; |
---|
15 | class intvec; |
---|
16 | |
---|
17 | struct snumber; typedef struct snumber * number; |
---|
18 | struct spolyrec; typedef struct spolyrec polyrec; typedef polyrec * poly; |
---|
19 | struct ip_sring; typedef struct ip_sring * ring; |
---|
20 | struct sip_sideal; typedef struct sip_sideal * ideal; |
---|
21 | |
---|
22 | class ip_smatrix; typedef ip_smatrix * matrix; |
---|
23 | |
---|
24 | struct n_Procs_s; typedef struct n_Procs_s *coeffs; |
---|
25 | |
---|
26 | //#include <polys/clapconv.h> |
---|
27 | //#include <kernel/longtrans.h> |
---|
28 | |
---|
29 | /// destroys f and g |
---|
30 | poly singclap_gcd ( poly f, poly g, const ring r ); |
---|
31 | |
---|
32 | poly singclap_gcd_r ( poly f, poly g, const ring r ); |
---|
33 | |
---|
34 | /// clears denominators of f and g, divides by gcd(f,g) |
---|
35 | void singclap_gcd_and_divide ( poly& f, poly& g, const ring r); |
---|
36 | |
---|
37 | // commented out! |
---|
38 | // poly singclap_alglcm ( poly f, poly g, const ring r ); |
---|
39 | // void singclap_algdividecontent ( napoly f, napoly g, napoly &ff, napoly &gg ); |
---|
40 | |
---|
41 | poly singclap_resultant ( poly f, poly g , poly x, const ring r); |
---|
42 | |
---|
43 | BOOLEAN singclap_extgcd ( poly f, poly g, poly &res, poly &pa, poly &pb , const ring r); |
---|
44 | |
---|
45 | poly singclap_pdivide ( poly f, poly g, const ring r ); |
---|
46 | |
---|
47 | void singclap_divide_content ( poly f, const ring r); |
---|
48 | |
---|
49 | ideal singclap_factorize ( poly f, intvec ** v , int with_exps, const ring r); |
---|
50 | |
---|
51 | ideal singclap_sqrfree ( poly f, intvec ** v , int with_exps, const ring r ); |
---|
52 | |
---|
53 | # ifdef HAVE_NTL |
---|
54 | # if 1 |
---|
55 | matrix singntl_HNF(matrix A, const ring r); |
---|
56 | intvec* singntl_HNF(intvec* A, const ring r); |
---|
57 | matrix singntl_LLL(matrix A, const ring r); |
---|
58 | intvec* singntl_LLL(intvec* A, const ring r); |
---|
59 | |
---|
60 | ideal singclap_absBiFactorize ( poly f, ideal & mipos, intvec ** exps, int & n, const ring r); |
---|
61 | # endif |
---|
62 | # endif |
---|
63 | |
---|
64 | BOOLEAN singclap_isSqrFree(poly f, const ring r); |
---|
65 | |
---|
66 | # ifdef HAVE_LIBFAC |
---|
67 | matrix singclap_irrCharSeries ( ideal I, const ring r); |
---|
68 | char* singclap_neworder ( ideal I, const ring r); |
---|
69 | # endif |
---|
70 | |
---|
71 | poly singclap_det( const matrix m, const ring r ); |
---|
72 | int singclap_det_i( intvec * m, const ring r ); |
---|
73 | number singclap_det_bi( bigintmat * m, const coeffs cf); |
---|
74 | |
---|
75 | number nChineseRemainder(number *x, number *q,int rl, const coeffs r); |
---|
76 | |
---|
77 | |
---|
78 | #endif /* HAVE_FACTORY */ |
---|
79 | |
---|
80 | #endif /* INCL_FACTORYSING_H */ |
---|
81 | |
---|