Changeset 3630fa8 in git


Ignore:
Timestamp:
Sep 7, 2011, 9:19:08 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
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)
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r993ae2 r3630fa8  
    23652365                }
    23662366
    2367                 matrix Temp=mp_Transp((matrix) idVec2Ideal(r), currRing);
    2368                 matrix R=mpNew(MATCOLS((matrix) idVec2Ideal(f)),1);
     2367                matrix Temp=mp_Transp((matrix) id_Vec2Ideal(r, currRing), currRing);
     2368                matrix R=mpNew(MATCOLS((matrix) id_Vec2Ideal(f, currRing)),1);
    23692369                for (int k=1;k<=MATROWS(Temp);k++)
    23702370                {
  • Singular/iparith.cc

    r993ae2 r3630fa8  
    50215021static BOOLEAN jjidFreeModule(leftv res, leftv v)
    50225022{
    5023   res->data = (char *)idFreeModule((int)(long)v->Data());
     5023  res->data = (char *)id_FreeModule((int)(long)v->Data(), currRing);
    50245024  return FALSE;
    50255025}
    50265026static BOOLEAN jjidVec2Ideal(leftv res, leftv v)
    50275027{
    5028   res->data = (char *)idVec2Ideal((poly)v->Data());
     5028  res->data = (char *)id_Vec2Ideal((poly)v->Data(), currRing);
    50295029  return FALSE;
    50305030}
  • Singular/lists.cc

    r993ae2 r3630fa8  
    246246          {
    247247            idDelete(&(r[i]));
    248             r[i]=idFreeModule(rank);
     248            r[i]=id_FreeModule(rank, currRing);
    249249          }
    250250          else
  • 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.