Changeset dfc64d9 in git


Ignore:
Timestamp:
Aug 27, 1998, 2:32:41 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d7622d0bffead9dc2eb8aa64d15564e9b361a7cb
Parents:
9c9fb9d01c2c2a1581d22ee36200b77b2e7bd41c
Message:
* hannnes: transpose for modules


git-svn-id: file:///usr/local/Singular/svn/trunk@2487 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/ideals.cc

    r9c9fb9 rdfc64d9  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.34 1998-07-14 07:46:26 siebert Exp $ */
     4/* $Id: ideals.cc,v 1.35 1998-08-27 12:32:41 Singular Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    31723172}
    31733173
     3174/*2
     3175* transpose a module
     3176*/
     3177ideal idTransp(ideal a)
     3178{
     3179  int r = a->rank, c = IDELEMS(a);
     3180  ideal b =  idInit(r,c);
     3181
     3182  for (int i=c; i>0; i--)
     3183  {
     3184    poly p=a->m[i-1];
     3185    while(p!=NULL)
     3186    {
     3187      poly h=pHead(p);
     3188      int co=pGetComp(h)-1;
     3189      pSetComp(h,i);
     3190      b->m[co]=pAdd(b->m[co],h);
     3191      pIter(p);
     3192    }
     3193  }
     3194  return b;
     3195}
     3196
  • Singular/ideals.h

    r9c9fb9 rdfc64d9  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: ideals.h,v 1.8 1998-07-01 13:27:16 Singular Exp $ */
     6/* $Id: ideals.h,v 1.9 1998-08-27 12:32:40 Singular Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate ideals
     
    133133matrix  idCoeffOfKBase(ideal arg, ideal kbase, poly how);
    134134intvec *idQHomWeights(ideal id);
     135ideal   idTransp(ideal a);
    135136#endif
  • Singular/iparith.cc

    r9c9fb9 rdfc64d9  
    29012901#define jjDIM_R          (proc1)23
    29022902#define jjMINRES_R       (proc1)24
     2903#define jjidTransp       (proc1)25
    29032904
    29042905extern struct sValCmd1 dArith1[];
     
    29392940        case (int)jjDIM_R:        dArith1[i].p=(proc1)syDim; break;
    29402941        case (int)jjMINRES_R:     dArith1[i].p=(proc1)syMinimize; break;
     2942        case (int)jjidTransp:     dArith1[i].p=(proc1)idTransp; break;
    29412943#ifdef GENTABLE
    29422944        default: Werror("missing proc1-definition for %d",(int)dArith1[i].p);
     
    30643066{
    30653067  res->data=(char *)syMinimize((syStrategy)v->Data());
     3068  return FALSE;
     3069}
     3070static BOOLEAN jjidTransp(leftv res, leftv v)
     3071{
     3072  res->data = (char *)idTransp((ideal)v->Data());
    30663073  return FALSE;
    30673074}
     
    30933100#define jjDIM_R        (proc1)syDim
    30943101#define jjMINRES_R     (proc1)syMinimize
     3102#define jjidTransp     (proc1)idTransp
    30953103#endif
    30963104#endif
     
    33243332,{jjTRANSP_IV,  TRANSPOSE_CMD,   INTMAT_CMD,     INTMAT_CMD }
    33253333,{jjmpTransp,   TRANSPOSE_CMD,   XS(MATRIX_CMD), MATRIX_CMD }
     3334,{jjidTransp,   TRANSPOSE_CMD,   XS(MODUL_CMD),  MODUL_CMD }
    33263335,{jjTYPEOF,     TYPEOF_CMD,      STRING_CMD,     ANY_TYPE }
    33273336,{jjDUMMY,      VECTOR_CMD,      VECTOR_CMD,     VECTOR_CMD }
Note: See TracChangeset for help on using the changeset viewer.