Changeset 17b0b05 in git
- Timestamp:
- May 12, 2011, 3:12:45 PM (12 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 2c41bc0e28c6628127866480994b3041a3c1f0af
- Parents:
- ea000154f0b80de2f44a961be0d4a407828b72c9
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-12 15:12:45+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:07+01:00
- Location:
- libpolys
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/ffields.cc
rea0001 r17b0b05 17 17 #include <resources/feFopen.h> 18 18 #include <math.h> 19 #include <factory/factory.h>20 19 21 20 … … 612 611 else r->m_nfCharQ = -c; 613 612 char buf[100]; 614 sprintf(buf, GFTABLEDIR "/%d",r->m_nfCharQ);613 sprintf(buf,"%d",r->m_nfCharQ); 615 614 FILE * fp = feFopen(buf,"r",NULL,TRUE); 616 615 if (fp==NULL) -
libpolys/polys/monomials/ring.cc
rea0001 r17b0b05 136 136 */ 137 137 138 ring rDefault(co effs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1)138 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1) 139 139 { 140 140 assume( cf != NULL); … … 170 170 return rDefault(cf,N,n,ord_size,ord,block0,block1); 171 171 } 172 ring rDefault(coeffs cf, int N, char **n) 173 { 174 assume( cf != NULL); 175 /*order: lp,0*/ 176 int *order = (int *) omAlloc(2* sizeof(int)); 177 int *block0 = (int *)omAlloc0(2 * sizeof(int)); 178 int *block1 = (int *)omAlloc0(2 * sizeof(int)); 179 /* ringorder dp for the first block: var 1..N */ 180 order[0] = ringorder_lp; 181 block0[0] = 1; 182 block1[0] = N; 183 /* the last block: everything is 0 */ 184 order[1] = 0; 185 186 return rDefault(cf,N,n,2,order,block0,block1); 172 ring rDefault(const coeffs cf, int N, char **n) 173 { 174 if( cf != NULL) 175 { 176 /*order: lp,0*/ 177 int *order = (int *) omAlloc(2* sizeof(int)); 178 int *block0 = (int *)omAlloc0(2 * sizeof(int)); 179 int *block1 = (int *)omAlloc0(2 * sizeof(int)); 180 /* ringorder dp for the first block: var 1..N */ 181 order[0] = ringorder_lp; 182 block0[0] = 1; 183 block1[0] = N; 184 /* the last block: everything is 0 */ 185 order[1] = 0; 186 187 return rDefault(cf,N,n,2,order,block0,block1); 188 } 189 else return NULL; 187 190 } 188 191 -
libpolys/polys/monomials/ring.h
rea0001 r17b0b05 335 335 idhdl rDefault(const char *s); 336 336 ring rDefault(int ch, int N, char **n); 337 ring rDefault(co effs cf, int N, char **n);337 ring rDefault(const coeffs cf, int N, char **n); 338 338 ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1); 339 ring rDefault(co effs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);339 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1); 340 340 341 341 // #define rIsRingVar(A) r_IsRingVar(A,currRing) -
libpolys/resources/feResource.cc
rea0001 r17b0b05 17 17 18 18 #include "feResource.h" 19 20 19 21 20 #ifdef AIX_4 … … 83 82 "%r/../LIB;" 84 83 "%d/LIB;" 85 "%d/../LIB" 84 "%d/../LIB;" 85 "%b/../../../factory/gftables;" 86 "%b/../../factory/gftables", 86 87 ""}, 87 88 {"Singular", 'S', feResBinary,"SINGULAR_EXECUTABLE", "%d/"S_UNAME"/Singular",(char *)""}, … … 523 524 if (*(fn+2) == '.' && (*(fn + 3) == '/' || *(fn + 3) == '\0')) 524 525 { 526 #if 0 527 // this does not work: ./../../mmm will be changed to ./../mmm 528 // but we only want to change ././mmm to ./mmm 525 529 *fn = '\0'; 526 530 s = strrchr(fname, '/'); … … 534 538 *fn = '/'; 535 539 } 540 #endif 536 541 } 537 542 else if (*(fn+2) == '/' || *(fn+2) == '\0') -
libpolys/tests/polys_test.h
rea0001 r17b0b05 300 300 void test_Z13_t_GF() 301 301 { 302 StringSetS("ressources in use (as reported by feStringAppendResources(0):\n"); 303 feStringAppendResources(0); 304 PrintS(StringAppendS("\n")); 305 302 306 clog << "Creating GF[t]: " << endl; 303 307
Note: See TracChangeset
for help on using the changeset viewer.