Changeset 050d1b in git
- Timestamp:
- Apr 4, 2012, 1:30:52 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 0a7d0ca68a61f160eb5b83774592a019ed99f025
- Parents:
- a76d6fe76b652b99d7b02e9ba874bb0c39294637
- git-author:
- Martin Lee <martinlee84@web.de>2012-04-04 13:30:52+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-04-04 15:02:12+02:00
- Location:
- factory
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_char.cc
ra76d6fe r050d1b 74 74 int getGFDegree() 75 75 { 76 ASSERT( theDegree > 0, "not in GF(q)" );76 //ASSERT( theDegree > 0, "not in GF(q)" ); 77 77 return theDegree; 78 78 } -
factory/cf_gcd_smallp.cc
ra76d6fe r050d1b 3992 3992 Evaluation result= Evaluation (A.min(), A.max()); 3993 3993 ASSERT (A.min() == 2, "expected A.min() == 2"); 3994 ASSERT (A.max() == n, "expected A.max() == n");3994 ASSERT (A.max() >= n, "expected A.max() >= n"); 3995 3995 int max_deg; 3996 3996 int k= n; -
factory/cf_map_ext.cc
ra76d6fe r050d1b 287 287 if (buf == buf2) break; 288 288 } 289 ASSERT (counter >= bound, "alpha is not primitive");289 ASSERT (counter <= bound, "alpha is not primitive"); 290 290 if (pos == 0) 291 291 { -
factory/facFqBivar.cc
ra76d6fe r050d1b 145 145 { 146 146 Variable x= A.mvar(); 147 ASSERT (A.isUnivariate(), "univariate polynomial expected"); 147 ASSERT (A.isUnivariate() || A.inCoeffDomain(), 148 "univariate polynomial expected or constant expected"); 148 149 CFFList factorsA; 149 150 ZZ p= to_ZZ (getCharacteristic()); -
factory/facFqBivarUtil.cc
ra76d6fe r050d1b 549 549 ) 550 550 { 551 ASSERT (A.size () - startIndex > 0, "wrong starting index");552 ASSERT (A.size () - startIndex == M.rows(), "wrong starting index");551 ASSERT (A.size () - startIndex >= 0, "wrong starting index"); 552 ASSERT (A.size () - startIndex <= M.rows(), "wrong starting index"); 553 553 ASSERT (column > 0 && column <= M.columns(), "wrong column"); 554 554 if (A.size() - startIndex <= 0) return; … … 560 560 CFArray getCoeffs (const CanonicalForm& F, const int k) 561 561 { 562 ASSERT (F.isUnivariate() , "univariate input expected");562 ASSERT (F.isUnivariate() || F.inCoeffDomain(), "univariate input expected"); 563 563 if (degree (F, 2) < k) 564 564 return CFArray(); … … 583 583 CFArray getCoeffs (const CanonicalForm& F, const int k, const Variable& alpha) 584 584 { 585 ASSERT (F.isUnivariate() , "univariate input expected");585 ASSERT (F.isUnivariate() || F.inCoeffDomain(), "univariate input expected"); 586 586 if (degree (F, 2) < k) 587 587 return CFArray (); … … 626 626 const mat_zz_p& M) 627 627 { 628 ASSERT (G.isUnivariate() , "univariate input expected");628 ASSERT (G.isUnivariate() || G.inCoeffDomain(), "univariate input expected"); 629 629 CanonicalForm F= G (G.mvar() - evaluation, G.mvar()); 630 630 if (F.isZero()) -
factory/facMul.cc
ra76d6fe r050d1b 2422 2422 { 2423 2423 ASSERT (getCharacteristic() > 0, "positive characteristic expected"); 2424 ASSERT (CFFactory::gettype() != GaloisFieldDomain, "no GF expected");2425 2424 2426 2425 CanonicalForm A= mod (F, M); … … 2575 2574 return; 2576 2575 } 2577 ASSERT (2*degB > degA, "expected degree (F, 1) < 2*degree (G, 1)");2578 2576 if (degB < 1) 2579 2577 { … … 2583 2581 return; 2584 2582 } 2585 2586 2583 int m= (int) ceil ((double) (degB + 1)/2.0) + 1; 2584 ASSERT (4*m >= degA, "expected degree (F, 1) < 2*degree (G, 1)"); 2587 2585 CFList splitA= split (A, m, x); 2588 2586 if (splitA.length() == 3) … … 2647 2645 return; 2648 2646 } 2649 ASSERT (3*(degB/2) > degA, "expected degree (F, 1) < 3*(degree (G, 1)/2)");2650 2647 if (degB < 1) 2651 2648 { … … 2656 2653 } 2657 2654 int m= (int) ceil ((double) (degB + 1)/ 2.0); 2658 2655 ASSERT (3*m > degA, "expected degree (F, 1) < 3*degree (G, 1)"); 2659 2656 CFList splitA= split (A, m, x); 2660 2657 CFList splitB= split (B, m, x); -
factory/variable.cc
ra76d6fe r050d1b 161 161 Variable rootOf( const CanonicalForm & mipo, char name ) 162 162 { 163 ASSERT (mipo.i nPolyDomain() && mipo.isUnivariate(), "not a legal extension");163 ASSERT (mipo.isUnivariate(), "not a legal extension"); 164 164 165 165 int l;
Note: See TracChangeset
for help on using the changeset viewer.