Changeset 3630fa8 in git for kernel


Ignore:
Timestamp:
Sep 7, 2011, 9:19:08 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
419b39aef0431cdb83fb38ecb5a712c000ef90e6
Parents:
993ae23c42531aacfd0a9699643f5d31f6095349
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-07 21:19:08+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:35+01:00
Message:
FIX: starting to add an optional ring argument to id[^_]* (without it)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ideals.h

    r993ae2 r3630fa8  
    3737/// Count the effective size of an ideal
    3838/// (without the trailing allocated zero-elements)
    39 static inline int idSize(const ideal id)
     39static inline int idSize(const ideal id, const ring r = currRing)
    4040{
    4141  int j = IDELEMS(id) - 1;
     
    7373#endif
    7474
    75 ideal id_Copy (ideal h1, const ring r);
    76 
    77 #ifdef PDEBUG
     75ideal id_Copy (ideal h1, const ring r = currRing);
     76
     77#if 0
     78
     79// ifdef PDEBUG // Sorry: the following was lost........ :((((((((
    7880ideal idDBCopy(ideal h1,const char *f,int l,const ring r);
    7981#define id_DBCopy(A,r) idDBCopy(A,__FILE__,__LINE__,r)
     
    117119int     binom (int n,int r);
    118120
    119 ideal   idFreeModule (int i);
     121inline ideal idFreeModule (int i, const ring R = currRing)
     122{
     123  return id_FreeModule (i, R);
     124}
     125
     126
     127
    120128
    121129ideal   idSect (ideal h1,ideal h2);
     
    154162BOOLEAN idIsSubModule(ideal id1,ideal id2);
    155163
    156 ideal   idVec2Ideal(poly vec);
     164inline ideal idVec2Ideal(poly vec, const ring R = currRing)
     165{
     166  return id_Vec2Ideal(vec, R);
     167}
    157168
    158169ideal   idMatrix2Module(matrix mat);
Note: See TracChangeset for help on using the changeset viewer.