Changeset 7ee1907 in git for libpolys/polys/monomials
- Timestamp:
- Feb 28, 2012, 3:13:36 PM (12 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d901095118d1ee38940016e9b6c108a54485ac2a
- Parents:
- e8086733d77deaf0656dc33bc685bcc08f6a96ab
- Location:
- libpolys/polys/monomials
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/ring.cc
re80867 r7ee1907 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id$ */5 6 4 /* 7 5 * ABSTRACT - the interpreter related ring operations … … 108 106 //} 109 107 110 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1 )108 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1, int** wvhdl) 111 109 { 112 110 assume( cf != NULL); … … 123 121 } 124 122 /*weights: entries for 2 blocks: NULL*/ 125 r->wvhdl = (int **)omAlloc0((ord_size+1) * sizeof(int *)); 123 if (wvhdl==NULL) 124 r->wvhdl = (int **)omAlloc0((ord_size+1) * sizeof(int *)); 125 else 126 r->wvhdl=wvhdl; 126 127 r->order = ord; 127 128 r->block0 = block0; … … 134 135 return r; 135 136 } 136 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1 )137 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1,int ** wvhdl) 137 138 { 138 139 coeffs cf; … … 140 141 else cf=nInitChar(n_Zp,(void*)(long)ch); 141 142 assume( cf != NULL); 142 return rDefault(cf,N,n,ord_size,ord,block0,block1 );143 return rDefault(cf,N,n,ord_size,ord,block0,block1,wvhdl); 143 144 } 144 145 ring rDefault(const coeffs cf, int N, char **n) -
libpolys/polys/monomials/ring.h
re80867 r7ee1907 317 317 ring rDefault(int ch, int N, char **n); 318 318 ring rDefault(const coeffs cf, int N, char **n); 319 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1 );320 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1 );319 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1, int **wvhdl=NULL); 320 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1, int **wvhdl=NULL); 321 321 322 322 // #define rIsRingVar(A) r_IsRingVar(A,currRing) … … 603 603 // the following are only used internally 604 604 ringorder_aa, ///< for idElimination, like a, except pFDeg, pWeigths ignore it 605 ringorder_rs, ///< ???605 ringorder_rs, ///< opposite of ls 606 606 ringorder_IS, ///< Induced (Schreyer) ordering 607 607 ringorder_unspec
Note: See TracChangeset
for help on using the changeset viewer.