Changeset e4ca29b in git for kernel/hdegree.cc
- Timestamp:
- Nov 9, 2007, 12:29:45 PM (16 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0b4007f61f4525624acc8b539c5da92fdfe546fc
- Parents:
- e5e8e8aff2ec0d0232c8319fccfd6395577635cc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/hdegree.cc
re5e8e8 re4ca29b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hdegree.cc,v 1. 8 2007-11-06 17:55:57Singular Exp $ */4 /* $Id: hdegree.cc,v 1.9 2007-11-09 11:29:45 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - dimension, multiplicity, HC, kbase … … 1359 1359 } 1360 1360 1361 #if 0 -- alternative implementation of scComputeHC 1361 1362 void scComputeHCw(ideal ss, ideal Q, int ak, poly &hEdge, ring tailRing) 1362 1363 { … … 1419 1420 ideal res=scIdKbase(); 1420 1421 res->rank=ss->rank; 1421 poly p_ind= NULL; int ind=-2;1422 for(i=IDELEMS(res)-1;i> =0;i--)1423 { 1424 if (pCmp(res->m[i],p_ind)== 1) { p_ind=res->m[i]; ind=i; }1422 poly p_ind=res->m[0]; int ind=0; 1423 for(i=IDELEMS(res)-1;i>0;i--) 1424 { 1425 if (pCmp(res->m[i],p_ind)==-1) { p_ind=res->m[i]; ind=i; } 1425 1426 } 1426 1427 assume(p_ind!=NULL); … … 1438 1439 } 1439 1440 } 1441 #endif
Note: See TracChangeset
for help on using the changeset viewer.