Changeset ae78cf in git
- Timestamp:
- Jan 10, 2013, 11:20:10 AM (10 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- d81e39d347055cad093a2ae53302e036ae2a449c
- Parents:
- b0a81177e7c506b38836a82dc86bca5774eab0e8
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-01-10 11:20:10+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-19 20:27:29+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
rb0a811 rae78cf 11 11 12 12 #include <omalloc/omalloc.h> 13 #include <misc/auxiliary.h>14 13 15 14 #ifndef NDEBUG … … 2562 2561 void idKeepFirstK(ideal id, const int k) 2563 2562 { 2564 for (int i = IDELEMS(id)-1; i >= k; i--) 2565 { 2566 if (id->m[i] != NULL) pDelete(&id->m[i]); 2567 } 2568 pEnlargeSet(&(id->m), IDELEMS(id), k-IDELEMS(id)); 2569 IDELEMS(id) = k; 2563 for (int i = IDELEMS(id)-1; i >= k; i--) 2564 { 2565 if (id->m[i] != NULL) pDelete(&id->m[i]); 2566 } 2567 if (k==0) k=1; /* ideals must have at least one element(0)*/ 2568 pEnlargeSet(&(id->m), IDELEMS(id), k-IDELEMS(id)); 2569 IDELEMS(id) = k; 2570 2570 } 2571 2571
Note: See TracChangeset
for help on using the changeset viewer.