Changeset d3e630 in git for kernel/clapsing.cc
- Timestamp:
- Jul 28, 2009, 4:19:05 PM (14 years ago)
- Branches:
- (u'spielwiese', '1170388a280084e303867145f98985f03b2af06d')
- Children:
- a07e45cfc61927c5711cee673474fb891d4574ac
- Parents:
- 01cda73e965c4d5da3e4d30eb09639f00d9fbe4d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/clapsing.cc
r01cda73 rd3e630 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1.3 6 2009-03-17 16:51:31Singular Exp $5 // $Id: clapsing.cc,v 1.37 2009-07-28 14:15:05 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory … … 20 20 #include <factory.h> 21 21 #include "clapconv.h" 22 #ifdef HAVE_LIBFAC_P23 22 #include <factor.h> 24 23 //CanonicalForm algcd(const CanonicalForm & F, const CanonicalForm & g, const CFList & as, const Varlist & order); 25 24 CanonicalForm alg_gcd(const CanonicalForm &, const CanonicalForm &, const CFList &); 26 #endif27 25 #include "ring.h" 28 26 … … 240 238 { 241 239 #if 0 242 #ifdef HAVE_LIBFAC_P243 240 if (( nGetChar()==1 ) /* Q(a) */ && (!isOn(SW_USE_QGCD))) 244 241 { … … 256 253 } 257 254 else 258 #endif259 255 #endif 260 256 { … … 782 778 783 779 int singclap_factorize_retry; 784 #ifdef HAVE_LIBFAC_P785 780 extern int libfac_interruptflag; 786 #endif787 781 788 782 ideal singclap_factorize ( poly f, intvec ** v , int with_exps) … … 914 908 else /* Fp */ 915 909 { 916 #ifdef HAVE_LIBFAC_P917 910 do 918 911 { … … 921 914 } 922 915 while ((libfac_interruptflag!=0) ||(L.isEmpty())); 923 #else924 goto notImpl;925 #endif926 916 } 927 917 } … … 959 949 { 960 950 CanonicalForm G( convSingTrPFactoryP( f ) ); 961 #ifdef HAVE_LIBFAC_P962 951 // over Q(a) / multivariate over Fp(a) 963 952 do … … 971 960 #endif 972 961 libfac_interruptflag=0; 973 #else974 WarnS("complete factorization only for univariate polynomials");975 if (rField_is_Q_a() ||(!F.isUnivariate())) /* Q(a) */976 {977 L = factorize( G );978 }979 else980 {981 L = factorize( G, a );982 }983 #endif984 962 } 985 963 } … … 993 971 else /* Fp(a) */ 994 972 { 995 #ifdef HAVE_LIBFAC_P996 973 L = Factorize( F ); 997 #else998 goto notImpl;999 #endif1000 974 } 1001 975 } … … 1367 1341 matrix singclap_irrCharSeries ( ideal I) 1368 1342 { 1369 #ifdef HAVE_LIBFAC_P1370 1343 if (idIs0(I)) return mpNew(1,1); 1371 1344 … … 1456 1429 Off(SW_RATIONAL); 1457 1430 return res; 1458 #else1459 return NULL;1460 #endif1461 1431 } 1462 1432 1463 1433 char* singclap_neworder ( ideal I) 1464 1434 { 1465 #ifdef HAVE_LIBFAC_P1466 1435 int i; 1467 1436 Off(SW_RATIONAL); … … 1543 1512 if (s[strlen(s)-1]==',') s[strlen(s)-1]='\0'; 1544 1513 return s; 1545 #else1546 return NULL;1547 #endif1548 1514 } 1549 1515
Note: See TracChangeset
for help on using the changeset viewer.