Changeset 1ed346 in git
- Timestamp:
- Mar 15, 2011, 7:17:46 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- e9c3b29fc2ccfc0e5b778e8460f2dca4275e666e
- Parents:
- 273fed0aea0c3cb00dc08f02c5d5340a2a781f23
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/standard.lib
r273fed r1ed346 1385 1385 { 1386 1386 resolution re; 1387 if (((i==0) or (i>=nvars(basering))) && typeof(m) != "module")1387 if (((i==0) or (i>=nvars(basering))) && (typeof(m) != "module") && (nvars(basering)>1)) 1388 1388 { 1389 1389 //LaScala for the homogeneous case and i == 0 -
kernel/ring.cc
r273fed r1ed346 3676 3676 3677 3677 case ringorder_S: 3678 assume(typ_i == 0 && j == 0); 3678 assume(typ_i == 1); // For LaScala3 only: on the 2nd place ([1])! 3679 // TODO: for K[x]: it is 0...?! 3679 3680 rO_Syzcomp(j, j_bits,prev_ordsgn, tmp_ordsgn,tmp_typ[typ_i]); 3680 3681 need_to_add_comp=TRUE; … … 3684 3685 case ringorder_s: 3685 3686 assume(typ_i == 0 && j == 0); 3686 rO_Syz(j, j_bits, prev_ordsgn, tmp_ordsgn, tmp_typ[typ_i]); 3687 rO_Syz(j, j_bits, prev_ordsgn, tmp_ordsgn, tmp_typ[typ_i]); // set syz-limit? 3687 3688 need_to_add_comp=TRUE; 3688 3689 typ_i++; … … 3867 3868 else if (r->typ[i].ord_typ == ro_syzcomp) 3868 3869 { 3870 assume( r->typ[i].data.syzcomp.ShiftedComponents == NULL ); 3871 assume( r->typ[i].data.syzcomp.Components == NULL ); 3872 // WarnS( "rUnComplete : ord_typ == ro_syzcomp was unhandled!!! Possibly memory leak!!!" ); 3869 3873 #ifndef NDEBUG 3870 Warn( "rUnComplete : ord_typ == ro_syzcomp was unhandled!!! Possibly memory leak!!!");3874 // assume(0); 3871 3875 #endif 3872 3876 } … … 4298 4302 ring r) 4299 4303 { 4304 assume(r->typ[1].ord_typ == ro_syzcomp); 4305 4300 4306 r->typ[1].data.syzcomp.length = length; 4301 4307 rNChangeSComps( currComponents, currShiftedComponents, r); … … 4306 4312 ring r) 4307 4313 { 4314 assume(r->typ[1].ord_typ == ro_syzcomp); 4315 4308 4316 *length = r->typ[1].data.syzcomp.length; 4309 4317 rNGetSComps( currComponents, currShiftedComponents, r); … … 4313 4321 void rNChangeSComps(int* currComponents, long* currShiftedComponents, ring r) 4314 4322 { 4315 assume(r-> order[1]==ringorder_S);4323 assume(r->typ[1].ord_typ == ro_syzcomp); 4316 4324 4317 4325 r->typ[1].data.syzcomp.ShiftedComponents = currShiftedComponents; … … 4321 4329 void rNGetSComps(int** currComponents, long** currShiftedComponents, ring r) 4322 4330 { 4323 assume(r-> order[1]==ringorder_S);4331 assume(r->typ[1].ord_typ == ro_syzcomp); 4324 4332 4325 4333 *currShiftedComponents = r->typ[1].data.syzcomp.ShiftedComponents; -
kernel/ring.h
r273fed r1ed346 101 101 102 102 103 // The following are for LaScala3 only! 103 104 #ifdef PDEBUG 104 105 #define rChangeSComps(c,s,l) rDBChangeSComps(c,s,l) -
kernel/syz1.cc
r273fed r1ed346 1640 1640 if ((syzstr->syRing != NULL) && (syzstr->syRing != r)) 1641 1641 { 1642 rNChangeSComps(NULL, NULL, syzstr->syRing); 1642 1643 rKill(syzstr->syRing); 1643 1644 } … … 2594 2595 syzstr->syRing = rCurrRingAssure_dp_S(); 2595 2596 assume(syzstr->syRing != origR); 2597 assume(syzstr->syRing->typ[1].ord_typ == ro_syzcomp); 2598 2596 2599 2597 2600 // set initial ShiftedComps … … 2622 2625 omFreeSize((ADDRESS)currcomponents,(arg->rank+1)*sizeof(int)); 2623 2626 omFreeSize((ADDRESS)currShiftedComponents,(arg->rank+1)*sizeof(long)); 2627 2624 2628 syzstr->res = (resolvente)omAlloc0((maxlength+1)*sizeof(ideal)); 2625 2629 syzstr->orderedRes = (resolvente)omAlloc0((maxlength+1)*sizeof(ideal)); 2626 2630 syzstr->elemLength = (int**)omAlloc0((maxlength+1)*sizeof(int*)); 2631 2627 2632 syzstr->truecomponents = (int**)omAlloc0((maxlength+1)*sizeof(int*)); 2628 2633 syzstr->ShiftedComponents = (long**)omAlloc0((maxlength+1)*sizeof(long*)); 2634 2629 2635 syzstr->backcomponents = (int**)omAlloc0((maxlength+1)*sizeof(int*)); 2630 2636 syzstr->Howmuch = (int**)omAlloc0((maxlength+1)*sizeof(int*)); 2631 2637 syzstr->Firstelem = (int**)omAlloc0((maxlength+1)*sizeof(int*)); 2632 2638 syzstr->sev = (unsigned long **) omAlloc0((maxlength+1)*sizeof(unsigned long *)); 2639 2640 assume( syzstr->length == maxlength ); 2641 2633 2642 syzstr->bucket = kBucketCreate(); 2634 2643 int len0=idRankFreeModule(temp)+1;
Note: See TracChangeset
for help on using the changeset viewer.