Changeset f9fc81 in git for libpolys/polys/ext_fields/algext.cc
- Timestamp:
- Dec 6, 2013, 4:57:24 PM (10 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- f1a309fae2b1e4366fb7ead1dac3f33dbfc042a5
- Parents:
- bdda288ddec3d88538ca426b802f82d49d384caa9e8a6c3b0f4b1814c8ea54b2bf5679f4c3e9591d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/algext.cc
r9e8a6c3 rf9fc81 1327 1327 } 1328 1328 1329 1329 char* naCoeffString(const coeffs r) // currently also for tranext. 1330 { 1331 const char* const* p=n_ParameterNames(r); 1332 int l=0; 1333 int i; 1334 for(i=0; i<n_NumberOfParameters(r);i++) 1335 { 1336 l+=(strlen(p[i])+1); 1337 } 1338 char *s=(char *)omAlloc(l+10+1); 1339 s[0]='\0'; 1340 snprintf(s,10+1,"%d",r->ch); /* Fp(a) or Q(a) */ 1341 char tt[2]; 1342 tt[0]=','; 1343 tt[1]='\0'; 1344 for(i=0; i<n_NumberOfParameters(r);i++) 1345 { 1346 strcat(s,tt); 1347 strcat(s,p[i]); 1348 } 1349 return s; 1350 } 1330 1351 1331 1352 BOOLEAN naInitChar(coeffs cf, void * infoStruct) … … 1358 1379 p_Test((poly)naMinpoly, naRing); 1359 1380 #endif 1381 1382 cf->cfCoeffString = naCoeffString; 1360 1383 1361 1384 cf->cfGreaterZero = naGreaterZero;
Note: See TracChangeset
for help on using the changeset viewer.