Changeset 38fc181 in git
- Timestamp:
- Sep 8, 2011, 9:08:02 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cdfcdb8287f66bc6070028082cbbc6eff10e609b')
- Children:
- d84a4d17668e4e3415c4e0d965053268a0e162f0
- Parents:
- 7e6bfe4dfd3d23ed105e01efcc0429e77ab42915
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-08 21:08:02+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:36+01:00
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r7e6bfe r38fc181 2683 2683 return result; 2684 2684 } 2685 2686 2687 2688 2689 // uses glabl vars via pSetModDeg 2690 /* 2691 BOOLEAN idTestHomModule(ideal m, ideal Q, intvec *w) 2692 { 2693 if ((Q!=NULL) && (!idHomIdeal(Q,NULL))) { PrintS(" Q not hom\n"); return FALSE;} 2694 if (idIs0(m)) return TRUE; 2695 2696 int cmax=-1; 2697 int i; 2698 poly p=NULL; 2699 int length=IDELEMS(m); 2700 poly* P=m->m; 2701 for (i=length-1;i>=0;i--) 2702 { 2703 p=P[i]; 2704 if (p!=NULL) cmax=si_max(cmax,(int)pMaxComp(p)+1); 2705 } 2706 if (w != NULL) 2707 if (w->length()+1 < cmax) 2708 { 2709 // Print("length: %d - %d \n", w->length(),cmax); 2710 return FALSE; 2711 } 2712 2713 if(w!=NULL) 2714 p_SetModDeg(w, currRing); 2715 2716 for (i=length-1;i>=0;i--) 2717 { 2718 p=P[i]; 2719 poly q=p; 2720 if (p!=NULL) 2721 { 2722 int d=p_FDeg(p,currRing); 2723 loop 2724 { 2725 pIter(p); 2726 if (p==NULL) break; 2727 if (d!=p_FDeg(p,currRing)) 2728 { 2729 //pWrite(q); wrp(p); Print(" -> %d - %d\n",d,pFDeg(p,currRing)); 2730 if(w!=NULL) 2731 p_SetModDeg(NULL, currRing); 2732 return FALSE; 2733 } 2734 } 2735 } 2736 } 2737 2738 if(w!=NULL) 2739 p_SetModDeg(NULL, currRing); 2740 2741 return TRUE; 2742 } 2743 */ 2744 2745 2746 -
libpolys/polys/simpleideals.cc
r7e6bfe r38fc181 1428 1428 } 1429 1429 1430 // uses glabl vars via pSetModDeg1431 //BOOLEAN idTestHomModule(ideal m, ideal Q, intvec *w)1432 //{1433 // if ((Q!=NULL) && (!idHomIdeal(Q,NULL))) { PrintS(" Q not hom\n"); return FALSE;}1434 // if (idIs0(m)) return TRUE;1435 //1436 // int cmax=-1;1437 // int i;1438 // poly p=NULL;1439 // int length=IDELEMS(m);1440 // poly* P=m->m;1441 // for (i=length-1;i>=0;i--)1442 // {1443 // p=P[i];1444 // if (p!=NULL) cmax=si_max(cmax,(int)pMaxComp(p)+1);1445 // }1446 // if (w != NULL)1447 // if (w->length()+1 < cmax)1448 // {1449 // // Print("length: %d - %d \n", w->length(),cmax);1450 // return FALSE;1451 // }1452 //1453 // if(w!=NULL)1454 // pSetModDeg(w);1455 //1456 // for (i=length-1;i>=0;i--)1457 // {1458 // p=P[i];1459 // poly q=p;1460 // if (p!=NULL)1461 // {1462 // int d=pFDeg(p,currRing);1463 // loop1464 // {1465 // pIter(p);1466 // if (p==NULL) break;1467 // if (d!=pFDeg(p,currRing))1468 // {1469 // //pWrite(q); wrp(p); Print(" -> %d - %d\n",d,pFDeg(p,currRing));1470 // if(w!=NULL)1471 // pSetModDeg(NULL);1472 // return FALSE;1473 // }1474 // }1475 // }1476 // }1477 //1478 // if(w!=NULL)1479 // pSetModDeg(NULL);1480 //1481 // return TRUE;1482 //}1483 1484 1430 ideal id_Jet(ideal i,int d, const ring R) 1485 1431 {
Note: See TracChangeset
for help on using the changeset viewer.