Changeset 754c547 in git for Singular/ideals.cc
- Timestamp:
- Jan 19, 2002, 3:48:19 PM (22 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- e2b5115836f34facc584c5055707ef3f2f428830
- Parents:
- 865fbfc3404627ab39e23c40394104d68cd687ae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ideals.cc
r865fbf r754c547 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.12 5 2001-09-25 15:43:44 SingularExp $ */4 /* $Id: ideals.cc,v 1.126 2002-01-19 14:48:16 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 110 110 { 111 111 p_Delete(&((*h)->m[--j]), r); 112 } 113 while (j>0); 114 omFreeSize((ADDRESS)((*h)->m),sizeof(poly)*elems); 115 } 116 omFreeBin((ADDRESS)*h, sip_sideal_bin); 117 *h=NULL; 118 } 119 120 121 /*2 122 * Shallowdeletes an ideal/matrix 123 */ 124 void id_ShallowDelete (ideal *h, ring r) 125 { 126 int j,elems; 127 if (*h == NULL) 128 return; 129 elems=j=(*h)->nrows*(*h)->ncols; 130 if (j>0) 131 { 132 do 133 { 134 p_ShallowDelete(&((*h)->m[--j]), r); 112 135 } 113 136 while (j>0); … … 623 646 } 624 647 648 BOOLEAN idIsModule(ideal id, ring r) 649 { 650 if (id != NULL && rRing_has_Comp(r)) 651 { 652 int j, l = IDELEMS(id); 653 for (j=0; j<l; j++) 654 { 655 if (id->m[j] != NULL && p_GetComp(id->m[j], r) > 0) return TRUE; 656 } 657 } 658 return FALSE; 659 } 660 661 625 662 /*2 626 663 *returns true if id is homogenous with respect to the aktual weights
Note: See TracChangeset
for help on using the changeset viewer.