Changeset dfc64d9 in git
- Timestamp:
- Aug 27, 1998, 2:32:41 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d7622d0bffead9dc2eb8aa64d15564e9b361a7cb
- Parents:
- 9c9fb9d01c2c2a1581d22ee36200b77b2e7bd41c
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ideals.cc
r9c9fb9 rdfc64d9 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.3 4 1998-07-14 07:46:26 siebertExp $ */4 /* $Id: ideals.cc,v 1.35 1998-08-27 12:32:41 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 3172 3172 } 3173 3173 3174 /*2 3175 * transpose a module 3176 */ 3177 ideal 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 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ideals.h,v 1. 8 1998-07-01 13:27:16Singular Exp $ */6 /* $Id: ideals.h,v 1.9 1998-08-27 12:32:40 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate ideals … … 133 133 matrix idCoeffOfKBase(ideal arg, ideal kbase, poly how); 134 134 intvec *idQHomWeights(ideal id); 135 ideal idTransp(ideal a); 135 136 #endif -
Singular/iparith.cc
r9c9fb9 rdfc64d9 2901 2901 #define jjDIM_R (proc1)23 2902 2902 #define jjMINRES_R (proc1)24 2903 #define jjidTransp (proc1)25 2903 2904 2904 2905 extern struct sValCmd1 dArith1[]; … … 2939 2940 case (int)jjDIM_R: dArith1[i].p=(proc1)syDim; break; 2940 2941 case (int)jjMINRES_R: dArith1[i].p=(proc1)syMinimize; break; 2942 case (int)jjidTransp: dArith1[i].p=(proc1)idTransp; break; 2941 2943 #ifdef GENTABLE 2942 2944 default: Werror("missing proc1-definition for %d",(int)dArith1[i].p); … … 3064 3066 { 3065 3067 res->data=(char *)syMinimize((syStrategy)v->Data()); 3068 return FALSE; 3069 } 3070 static BOOLEAN jjidTransp(leftv res, leftv v) 3071 { 3072 res->data = (char *)idTransp((ideal)v->Data()); 3066 3073 return FALSE; 3067 3074 } … … 3093 3100 #define jjDIM_R (proc1)syDim 3094 3101 #define jjMINRES_R (proc1)syMinimize 3102 #define jjidTransp (proc1)idTransp 3095 3103 #endif 3096 3104 #endif … … 3324 3332 ,{jjTRANSP_IV, TRANSPOSE_CMD, INTMAT_CMD, INTMAT_CMD } 3325 3333 ,{jjmpTransp, TRANSPOSE_CMD, XS(MATRIX_CMD), MATRIX_CMD } 3334 ,{jjidTransp, TRANSPOSE_CMD, XS(MODUL_CMD), MODUL_CMD } 3326 3335 ,{jjTYPEOF, TYPEOF_CMD, STRING_CMD, ANY_TYPE } 3327 3336 ,{jjDUMMY, VECTOR_CMD, VECTOR_CMD, VECTOR_CMD }
Note: See TracChangeset
for help on using the changeset viewer.