Changeset f8735a in git
- Timestamp:
- Aug 16, 2016, 11:23:03 AM (8 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- cb0e293d0bd47f97ba6566b4dab0729e6fd02142
- Parents:
- e54c6ee3701e4ccbb9bbd08384f7599b03ce2d74
- Location:
- libpolys/coeffs
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/longrat.cc
re54c6ee rf8735a 3149 3149 { 3150 3150 //return omStrDup(nlCoeffName(r)); 3151 #ifdef SINGULAR_4_1 3152 if (r->cfDiv==nlDiv) return omStrDup("QQ"); 3153 else return omStrDup("ZZ"); 3154 #else 3151 3155 if (r->cfDiv==nlDiv) return omStrDup("0"); 3152 3156 else return omStrDup("integer"); 3157 #endif 3153 3158 } 3154 3159 -
libpolys/coeffs/modulop.cc
re54c6ee rf8735a 470 470 static char* npCoeffString(const coeffs r) 471 471 { 472 #ifdef SINGULAR_4_1 473 char *s=(char*)omAlloc(14); 474 snprintf(s,14,"ZZ/%d",r->ch); 475 #else 472 476 char *s=(char*)omAlloc(11); 473 477 snprintf(s,11,"%d",r->ch); 478 #endif 474 479 return s; 475 480 } -
libpolys/coeffs/rintegers.cc
re54c6ee rf8735a 466 466 static char* nrzCoeffString(const coeffs) 467 467 { 468 #ifdef SINGULAR_4_1 469 return omStrDup("ZZ"); 470 #else 468 471 return omStrDup("integer"); 472 #endif 469 473 } 470 474 -
libpolys/coeffs/rmodulo2m.cc
re54c6ee rf8735a 107 107 static char* nr2mCoeffString(const coeffs r) 108 108 { 109 // r->modExponent <=bitsize(long) 109 110 char* s = (char*) omAlloc(11+11); 111 #ifdef SINGULAR_4_1 112 sprintf(s,"ZZ/(2^%lu)",r->modExponent); 113 #else 110 114 sprintf(s,"integer,2,%lu",r->modExponent); 115 #endif 111 116 return s; 112 117 } -
libpolys/coeffs/rmodulon.cc
re54c6ee rf8735a 96 96 char* b = (char*) omAlloc(l); 97 97 b= mpz_get_str (b, 10, r->modBase); 98 #ifdef SINGULAR_4_1 99 char* s = (char*) omAlloc(15+l); 100 if (nCoeff_is_Ring_ModN(r)) sprintf(s,"ZZ/bigint(%s)",b); 101 else /*if (nCoeff_is_Ring_PtoM(r))*/ sprintf(s,"ZZ/(bigint(%s)^%lu)",b,r->modExponent); 102 #else 98 103 char* s = (char*) omAlloc(7+2+10+l); 99 104 if (nCoeff_is_Ring_ModN(r)) sprintf(s,"integer,%s",b); 100 105 else /*if (nCoeff_is_Ring_PtoM(r))*/ sprintf(s,"integer,%s^%lu",b,r->modExponent); 106 #endif 101 107 omFreeSize(b,l); 102 108 return s;
Note: See TracChangeset
for help on using the changeset viewer.