Changeset 750e70 in git for kernel/syz1.cc
- Timestamp:
- May 5, 2011, 7:20:56 PM (13 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
- Children:
- eb72ba1a1a50ca741a3113bf9b8bc34d414a678a
- Parents:
- 1f9a84fc8a205c643ce861d9e20c25dc687aa193
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/syz1.cc
r1f9a84 r750e70 1642 1642 if(syzstr->syRing->typ[1].ord_typ == ro_syzcomp) 1643 1643 rNChangeSComps(NULL, NULL, syzstr->syRing); 1644 1644 1645 1645 rKill(syzstr->syRing); 1646 1646 } … … 1797 1797 resolvente minres = syzstr->minres; 1798 1798 const int length = syzstr->length; 1799 1799 1800 1800 if ((fullres==NULL) && (minres==NULL)) 1801 1801 { 1802 1802 if (syzstr->hilb_coeffs==NULL) 1803 { 1803 { // LA SCALA 1804 1804 fullres = syReorder(syzstr->res, length, syzstr); 1805 1805 } 1806 1806 else 1807 { 1807 { // HRES 1808 1808 minres = syReorder(syzstr->orderedRes, length, syzstr); 1809 1809 syKillEmptyEntres(minres, length); 1810 1810 } 1811 1811 } 1812 1812 1813 1813 intvec *result=NULL; 1814 1814 1815 1815 if (fullres!=NULL) 1816 1816 result = syBetti(fullres,length,&dummy,weights,minim,row_shift); … … 1833 1833 syzstr->betti = ivCopy(result); // cache the result... 1834 1834 } 1835 1835 1836 1836 return result; 1837 1837 } … … 1957 1957 1958 1958 intvec* resolution = syzstr->resolution; 1959 1959 1960 1960 if (resolution==NULL) 1961 1961 { … … 2043 2043 } 2044 2044 2045 if (syzstr->resolution == NULL) syzstr->resolution = resolution; 2045 if (syzstr->resolution == NULL) syzstr->resolution = resolution; 2046 2046 } 2047 2047 … … 2411 2411 if (syzstr->hilb_coeffs==NULL) 2412 2412 { 2413 // La Scala Resolution 2413 2414 syzstr->minres = syReadOutMinimalRes(syzstr); 2414 2415 } 2415 2416 else 2416 { 2417 { // HRES 2417 2418 syzstr->minres = syReorder(syzstr->orderedRes,syzstr->length,syzstr); 2418 2419 } … … 2538 2539 if (temp!=NULL) idDelete(&temp); 2539 2540 kBucketDestroy(&(syzstr->bucket)); 2541 2540 2542 if (origR != syzstr->syRing) 2541 2543 rChangeCurrRing(origR); … … 2544 2546 if (TEST_OPT_PROT) PrintLn(); 2545 2547 2546 if (syzstr->minres==NULL) 2547 if (syzstr->resPairs!=NULL) 2548 if (syzstr->hilb_coeffs==NULL) 2549 syzstr->minres = syReadOutMinimalRes(syzstr); 2550 2548 assume(syzstr->minres==NULL); assume(syzstr->fullres ==NULL); 2549 assume(syzstr->resPairs!=NULL); assume(syzstr->hilb_coeffs==NULL); 2550 assume(syzstr->res!=NULL); 2551 2552 if(! TEST_OPT_NO_SYZ_MINIM ) 2553 syzstr->minres = syReadOutMinimalRes(syzstr); 2554 else 2555 syzstr->fullres = syReorder(syzstr->res, syzstr->length, syzstr); // buggy? (betti...?) 2556 2551 2557 return syzstr; 2552 2558 } … … 2570 2576 ring origR = currRing; 2571 2577 2572 if(weights!= NULL) 2578 if(weights!= NULL) 2573 2579 syzstr->cw = new intvec(weights); 2574 2580 else … … 2588 2594 //euler = -1; 2589 2595 redpol = pInit(); 2590 2596 2591 2597 if( maxlength > 0 ) 2592 2598 syzstr->length = maxlength; // = pVariables+2; 2593 2599 else 2594 syzstr->length = maxlength = pVariables+2; 2600 syzstr->length = maxlength = pVariables+2; 2595 2601 2596 2602 // Creare dp,S ring and change to it 2597 2603 syzstr->syRing = rCurrRingAssure_dp_S(); 2598 2604 assume(syzstr->syRing != origR); 2599 assume(syzstr->syRing->typ[1].ord_typ == ro_syzcomp); 2605 assume(syzstr->syRing->typ[1].ord_typ == ro_syzcomp); 2600 2606 2601 2607 … … 2627 2633 omFreeSize((ADDRESS)currcomponents,(arg->rank+1)*sizeof(int)); 2628 2634 omFreeSize((ADDRESS)currShiftedComponents,(arg->rank+1)*sizeof(long)); 2629 2635 2630 2636 syzstr->res = (resolvente)omAlloc0((maxlength+1)*sizeof(ideal)); 2631 2637 syzstr->orderedRes = (resolvente)omAlloc0((maxlength+1)*sizeof(ideal)); … … 2641 2647 2642 2648 assume( syzstr->length == maxlength ); 2643 2649 2644 2650 syzstr->bucket = kBucketCreate(); 2645 2651 int len0=idRankFreeModule(temp)+1;
Note: See TracChangeset
for help on using the changeset viewer.