Changeset 1ed346 in git for kernel/ring.cc
- Timestamp:
- Mar 15, 2011, 7:17:46 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- e9c3b29fc2ccfc0e5b778e8460f2dca4275e666e
- Parents:
- 273fed0aea0c3cb00dc08f02c5d5340a2a781f23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.