Changeset 71955d in git


Ignore:
Timestamp:
Jul 29, 2011, 11:01:00 AM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
ad3aa7914b6579de07eda993d2ee2be453525603
Parents:
73ad0c1da96d24bf6cc659867bd85c7b02df2b6d
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-07-29 11:01:00+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:01:15+01:00
Message:
idElem, id_Normalize -> simpleideals.h, simpleideals.cc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    r73ad0c r71955d  
    22662266}
    22672267
    2268 int idElem(const ideal F)
    2269 {
    2270   int i=0,j=IDELEMS(F)-1;
    2271 
    2272   while(j>=0)
    2273   {
    2274     if ((F->m)[j]!=NULL) i++;
    2275     j--;
    2276   }
    2277   return i;
    2278 }
    2279 
    22802268/*
    22812269*computes module-weights for liftings of homogeneous modules
  • kernel/ideals.h

    r73ad0c r71955d  
    177177intvec *idSort(ideal id,BOOLEAN nolex=TRUE);
    178178ideal   idModulo (ideal h1,ideal h2, tHomog h=testHomog, intvec ** w=NULL);
    179 int     idElem(const ideal F);
    180179matrix  idCoeffOfKBase(ideal arg, ideal kbase, poly how);
    181180// transpose a module
     
    186185intvec *idQHomWeight(ideal id);
    187186
    188 void    idNormalize(ideal id);
    189 
    190187ideal idXXX (ideal  h1, int k);
    191188
  • libpolys/polys/simpleideals.cc

    r73ad0c r71955d  
    189189    IDELEMS(ide) = j+1;
    190190  }
     191}
     192
     193int idElem(const ideal F)
     194{
     195  int i=0,j=IDELEMS(F)-1;
     196
     197  while(j>=0)
     198  {
     199    if ((F->m)[j]!=NULL) i++;
     200    j--;
     201  }
     202  return i;
    191203}
    192204
  • libpolys/polys/simpleideals.h

    r73ad0c r71955d  
    5555void idSkipZeroes (ideal ide);
    5656  /*gives an ideal the minimal possible size*/
     57
     58/// number of non-zero polys in F
     59int     idElem(const ideal F);
     60/// normialize all polys in id
     61void    id_Normalize(ideal id, const ring r);
    5762
    5863#ifdef PDEBUG
Note: See TracChangeset for help on using the changeset viewer.