Changeset fb0a699 in git
- Timestamp:
- Mar 2, 2011, 6:49:02 PM (13 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
- Children:
- 16f8f1227d3e09337313bb55007fdaaf58f2d048
- Parents:
- 32bd40b31e0076ebec70b5bdec0b6cbb3b63df1e
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-02 18:49:02+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:00:09+01:00
- Location:
- libpolys/coeffs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/numbers.cc
r32bd40 rfb0a699 187 187 } 188 188 #endif 189 cf_root=n;190 189 191 190 BOOLEAN nOK=TRUE; … … 196 195 Werror("coeff init missing for %d",(int)t); 197 196 if (nOK) 198 199 200 201 197 { 198 omFreeSize(n,sizeof(*n)); 199 return NULL; 200 } 202 201 cf_root=n; 203 202 // post init settings: -
libpolys/coeffs/test.cc
r32bd40 rfb0a699 163 163 bool Test(const n_coeffType type, void* p = NULL) 164 164 { 165 cout << endl << "----------------------- Testing coeffs: [" << type << 165 cout << endl << "----------------------- Testing coeffs: [" << type << ", " << p << 166 166 "]: -----------------------" << endl; 167 167 168 168 const coeffs r = nInitChar( type, p ); 169 169 170 if( r == NULL ) { cout << "error"; return false; }; 171 170 if( r == NULL ) { cout << "Test: could not get the specified coeff. domain for type: " << type << " and the parameter: " << p << endl; return false; }; 171 172 assume( r != NULL ); 172 173 nSetChar( r ); 173 174 assume( getCoeffType(r) == type ); … … 287 288 c ++; 288 289 #endif 289 290 GFInfo param; 290 291 type = nRegister( n_GF, nfInitChar); assume( type == n_GF ); 291 292 292 GFInfo param;293 293 294 294 param.GFChar= 5; … … 298 298 if( Test(type, (void*) ¶m) ) 299 299 c ++; 300 300 301 301 302 param.GFChar= 5; 302 303 param.GFDegree= 2; … … 306 307 c ++; 307 308 309 308 310 TODO(Somebody, floating arithmetics via GMP rely on two global variables (see setGMPFloatDigits). Please fix it!); 309 311
Note: See TracChangeset
for help on using the changeset viewer.