Changeset 1ddd04 in git
- Timestamp:
- Apr 20, 2011, 7:14:08 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 17e473accf9564b8b0b38cf730a72e24272bad8a
- Parents:
- 0ebd7e2b6d36c0b21765218475b3441258a77b4d
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-20 19:14:08+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:23+01:00
- Location:
- libpolys/polys/monomials
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/ring.cc
r0ebd7e r1ddd04 136 136 */ 137 137 138 ring rDefault( int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1)138 ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1) 139 139 { 140 140 ring r=(ring) omAlloc0Bin(sip_sring_bin); 141 r->ch = ch;141 r->ch = n_GetChar(cf); 142 142 r->N = N; 143 r->cf = cf; 143 144 /*r->P = 0; Alloc0 */ 144 145 /*names*/ … … 161 162 return r; 162 163 } 163 164 ring rDefault(int ch, int N, char **n) 165 { 164 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1) 165 { 166 coeffs cf; 167 if (ch==0) cf=nInitChar(n_Q,NULL); 168 else cf=nInitChar(n_Zp,(void*)(long)ch); 169 return rDefault(cf,N,n,ord_size,ord,block0,block1); 170 } 171 ring rDefault(coeffs cf, int N, char **n) 172 { 166 173 /*order: lp,0*/ 167 174 int *order = (int *) omAlloc(2* sizeof(int)); … … 175 182 order[1] = 0; 176 183 177 return rDefault(ch,N,n,2,order,block0,block1); 184 return rDefault(cf,N,n,2,order,block0,block1); 185 } 186 187 ring rDefault(int ch, int N, char **n) 188 { 189 coeffs cf; 190 if (ch==0) cf=nInitChar(n_Q,NULL); 191 else cf=nInitChar(n_Zp,(void*)(long)ch); 192 return rDefault(cf,N,n); 178 193 } 179 194 -
libpolys/polys/monomials/ring.h
r0ebd7e r1ddd04 330 330 idhdl rDefault(const char *s); 331 331 ring rDefault(int ch, int N, char **n); 332 ring rDefault(coeffs cf, int N, char **n); 332 333 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1); 334 ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1); 333 335 334 336 // #define rIsRingVar(A) r_IsRingVar(A,currRing)
Note: See TracChangeset
for help on using the changeset viewer.