Changeset 189f83 in git
 Timestamp:
 May 10, 2011, 6:02:18 PM (12 years ago)
 Branches:
 (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
 Children:
 c262d553ef66afc97649f98c489e0eeff937603d
 Parents:
 2db7aeea84caf5f3621e15f997e41de267126db7
 gitauthor:
 Oleksandr Motsak <motsak@mathematik.unikl.de>20110510 18:02:18+02:00
 gitcommitter:
 Mohamed Barakat <mohamed.barakat@rwthaachen.de>20111109 12:34:44+01:00
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

factory/gengftablesconway.cc
r2db7ae r189f83 11 11 //}}} 12 12 13 #include <iostream .h>14 #include <fstream .h>13 #include <iostream> 14 #include <fstream> 15 15 #include <strstream> 16 16 #include <string> 17 17 18 #include <stdlib.h> 19 18 20 #include <factory.h> 19 21 … … 22 24 23 25 using namespace std; 26 27 int initializeGMP() 28 { 29 return 1; 30 } 31 24 32 25 33 //{{{ constants … … 298 306 ps = LineSe.substr(0, pos1); 299 307 ns = LineSe.substr(pos1 + 1,pos2  pos1); 300 ptmp = std::atoi(ps.c_str()); //we have the value of p and n of these line301 ntmp = std::atoi(ns.c_str());308 ptmp = atoi(ps.c_str()); //we have the value of p and n of these line 309 ntmp = atoi(ns.c_str()); 302 310 303 311 if((ntmp==n)&&(ptmp==p)){flag=0;} // we check if they are our p and n to stop the search … … 314 322 pos1 = pos2 + 1; 315 323 pos2 = LineSe.find(",", pos1 + 1); 316 conway = std::atoi(LineSe.substr(pos1, pos2  pos1).c_str()); // value of the constant term in PC=Conway Polynomial324 conway = atoi(LineSe.substr(pos1, pos2  pos1).c_str()); // value of the constant term in PC=Conway Polynomial 317 325 pos1 = pos2; 318 326 pos2 = LineSe.find(",", pos1 + 1); … … 323 331 if(coef != "0") 324 332 { 325 conway = conway + std::atoi(coef.c_str()) * power(x, ii  1) ; //We add this monomial to the Conway Polynomial333 conway = conway + atoi(coef.c_str()) * power(x, ii  1) ; //We add this monomial to the Conway Polynomial 326 334 } 327 335 pos1 = pos2; … … 331 339 pos2 = LineSe.find( ",END", pos1 + 1); // To obtain the last coefficient we search "END" instead of "," 332 340 coef = LineSe.substr(pos1 + 1,pos2  pos1  1); 333 conway = conway + std::atoi(coef.c_str()) * power(x, ii  1) ; //We add the last monomial to the Conway Polynomial341 conway = conway + atoi(coef.c_str()) * power(x, ii  1) ; //We add the last monomial to the Conway Polynomial 334 342 335 343 in.close();
Note: See TracChangeset
for help on using the changeset viewer.