Changeset 754c547 in git for Singular/ideals.cc


Ignore:
Timestamp:
Jan 19, 2002, 3:48:19 PM (22 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
e2b5115836f34facc584c5055707ef3f2f428830
Parents:
865fbfc3404627ab39e23c40394104d68cd687ae
Message:
fixed maMonomoial_Insert


git-svn-id: file:///usr/local/Singular/svn/trunk@5745 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ideals.cc

    r865fbf r754c547  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.125 2001-09-25 15:43:44 Singular Exp $ */
     4/* $Id: ideals.cc,v 1.126 2002-01-19 14:48:16 obachman Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    110110    {
    111111      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*/
     124void 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);
    112135    }
    113136    while (j>0);
     
    623646}
    624647
     648BOOLEAN 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   
    625662/*2
    626663*returns true if id is homogenous with respect to the aktual weights
Note: See TracChangeset for help on using the changeset viewer.