Changeset aba90e8 in git
- Timestamp:
- Apr 29, 2013, 12:44:49 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- eb3abbb7345bcf75de0d0de288aeeba59f8c3985
- Parents:
- dd5ab893f9075772f5a92bae7a22a2e986ce4f10
- git-author:
- Martin Lee <martinlee84@web.de>2013-04-29 12:44:49+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2013-05-23 18:18:13+02:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facBivar.h
rdd5ab89 raba90e8 83 83 return result; 84 84 } 85 mat_ZZ M; 86 vec_ZZ S; 85 86 mpz_t * M=new mpz_t [4]; 87 mpz_init (M[0]); 88 mpz_init (M[1]); 89 mpz_init (M[2]); 90 mpz_init (M[3]); 91 92 mpz_t * S=new mpz_t [2]; 93 mpz_init (S[0]); 94 mpz_init (S[1]); 95 87 96 F= compress (F, M, S); 88 97 CFList result= biFactorize (F, v); … … 98 107 result.insert (Lc (G)); 99 108 } 109 110 mpz_clear (M[0]); 111 mpz_clear (M[1]); 112 mpz_clear (M[2]); 113 mpz_clear (M[3]); 114 delete [] M; 115 116 mpz_clear (S[0]); 117 mpz_clear (S[1]); 118 delete [] S; 119 100 120 return result; 101 121 } … … 197 217 return result; 198 218 } 199 mat_ZZ M; 200 vec_ZZ S; 219 220 mpz_t * M=new mpz_t [4]; 221 mpz_init (M[0]); 222 mpz_init (M[1]); 223 mpz_init (M[2]); 224 mpz_init (M[3]); 225 226 mpz_t * S=new mpz_t [2]; 227 mpz_init (S[0]); 228 mpz_init (S[1]); 229 201 230 F= compress (F, M, S); 202 231 TIMING_START (fac_bi_sqrf); … … 233 262 result.insert (CFFactor (LcF, 1)); 234 263 } 264 265 mpz_clear (M[0]); 266 mpz_clear (M[1]); 267 mpz_clear (M[2]); 268 mpz_clear (M[3]); 269 delete [] M; 270 271 mpz_clear (S[0]); 272 mpz_clear (S[1]); 273 delete [] S; 274 235 275 return result; 236 276 } -
factory/facFqBivar.h
rdd5ab89 raba90e8 94 94 return result; 95 95 } 96 mat_ZZ M; 97 vec_ZZ S; 96 mpz_t * M=new mpz_t [4]; 97 mpz_init (M[0]); 98 mpz_init (M[1]); 99 mpz_init (M[2]); 100 mpz_init (M[3]); 101 102 mpz_t * S=new mpz_t [2]; 103 mpz_init (S[0]); 104 mpz_init (S[1]); 105 98 106 F= compress (F, M, S); 99 107 CFList result= biFactorize (F, info); … … 106 114 normalize (result); 107 115 result.insert (Lc(G)); 116 117 mpz_clear (M[0]); 118 mpz_clear (M[1]); 119 mpz_clear (M[2]); 120 mpz_clear (M[3]); 121 delete [] M; 122 123 mpz_clear (S[0]); 124 mpz_clear (S[1]); 125 delete [] S; 126 108 127 return result; 109 128 } … … 228 247 return result; 229 248 } 230 mat_ZZ M; 231 vec_ZZ S; 249 mpz_t * M=new mpz_t [4]; 250 mpz_init (M[0]); 251 mpz_init (M[1]); 252 mpz_init (M[2]); 253 mpz_init (M[3]); 254 255 mpz_t * S=new mpz_t [2]; 256 mpz_init (S[0]); 257 mpz_init (S[1]); 258 232 259 F= compress (F, M, S); 233 260 … … 254 281 normalize (result); 255 282 result.insert (CFFactor (LcF, 1)); 283 284 mpz_clear (M[0]); 285 mpz_clear (M[1]); 286 mpz_clear (M[2]); 287 mpz_clear (M[3]); 288 delete [] M; 289 290 mpz_clear (S[0]); 291 mpz_clear (S[1]); 292 delete [] S; 293 256 294 return result; 257 295 } … … 335 373 return result; 336 374 } 337 mat_ZZ M; 338 vec_ZZ S; 375 376 mpz_t * M=new mpz_t [4]; 377 mpz_init (M[0]); 378 mpz_init (M[1]); 379 mpz_init (M[2]); 380 mpz_init (M[3]); 381 382 mpz_t * S=new mpz_t [2]; 383 mpz_init (S[0]); 384 mpz_init (S[1]); 385 339 386 F= compress (F, M, S); 340 387 … … 361 408 normalize (result); 362 409 result.insert (CFFactor (LcF, 1)); 410 411 mpz_clear (M[0]); 412 mpz_clear (M[1]); 413 mpz_clear (M[2]); 414 mpz_clear (M[3]); 415 delete [] M; 416 417 mpz_clear (S[0]); 418 mpz_clear (S[1]); 419 delete [] S; 420 363 421 return result; 364 422 } … … 443 501 return result; 444 502 } 445 mat_ZZ M; 446 vec_ZZ S; 503 504 mpz_t * M=new mpz_t [4]; 505 mpz_init (M[0]); 506 mpz_init (M[1]); 507 mpz_init (M[2]); 508 mpz_init (M[3]); 509 510 mpz_t * S=new mpz_t [2]; 511 mpz_init (S[0]); 512 mpz_init (S[1]); 513 447 514 F= compress (F, M, S); 448 515 … … 469 536 normalize (result); 470 537 result.insert (CFFactor (LcF, 1)); 538 539 mpz_clear (M[0]); 540 mpz_clear (M[1]); 541 mpz_clear (M[2]); 542 mpz_clear (M[3]); 543 delete [] M; 544 545 mpz_clear (S[0]); 546 mpz_clear (S[1]); 547 delete [] S; 548 471 549 return result; 472 550 }
Note: See TracChangeset
for help on using the changeset viewer.