Changeset 733d24 in git
- Timestamp:
- Sep 28, 2011, 7:33:12 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 9310cbb099615137456c0252eaee33a50d9db993
- Parents:
- 046a941e1caf6571a05abbcd7e9dc58a903aa4eb
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-28 19:33:12+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:43+01:00
- Location:
- libpolys/coeffs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/gnumpc.cc
r046a94 r733d24 389 389 { 390 390 assume( getCoeffType(n) == ID ); 391 assume( parameter != NULL);392 391 393 392 n->cfKillChar = ndKillChar; /* dummy */ … … 488 487 r->has_simple_Inverse=FALSE; 489 488 */ 490 491 LongComplexInfo* p = (LongComplexInfo*)parameter; 492 n->complex_parameter = omStrDup(p->par_name); 493 n->float_len = p->float_len; 494 n->float_len2 = p->float_len2; 489 490 if( parameter != NULL) 491 { 492 LongComplexInfo* p = (LongComplexInfo*)parameter; 493 n->complex_parameter = omStrDup(p->par_name); 494 n->float_len = p->float_len; 495 n->float_len2 = p->float_len2; 496 497 } else // default values, just for testing! 498 { 499 n->complex_parameter = omStrDup("i"); 500 n->float_len = SHORT_REAL_LENGTH; 501 n->float_len2 = SHORT_REAL_LENGTH; 502 } 503 504 assume( n->float_len <= n->float_len2 ); 505 assume( n->float_len2 >= SHORT_REAL_LENGTH ); 506 assume( n->complex_parameter != NULL ); 495 507 496 508 return FALSE; -
libpolys/coeffs/gnumpfl.cc
r046a94 r733d24 404 404 { 405 405 assume( getCoeffType(n) == ID ); 406 assume( parameter != NULL);407 LongComplexInfo *p = (LongComplexInfo*)parameter;408 406 409 407 n->cfKillChar = ndKillChar; /* dummy */ … … 441 439 n->nCoeffIsEqual = ngfCoeffIsEqual; 442 440 443 n->float_len = p->float_len; 444 n->float_len2 = p->float_len2; 441 if( parameter != NULL) 442 { 443 LongComplexInfo* p = (LongComplexInfo*)parameter; 444 445 n->float_len = p->float_len; 446 n->float_len2 = p->float_len2; 447 } else // default values, just for testing! 448 { 449 n->float_len = SHORT_REAL_LENGTH; 450 n->float_len2 = SHORT_REAL_LENGTH; 451 } 452 453 assume( n->float_len <= n->float_len2 ); 454 assume( n->float_len2 >= SHORT_REAL_LENGTH ); 455 assume( n->complex_parameter == NULL ); 445 456 446 457 return FALSE; -
libpolys/coeffs/shortfl.cc
r046a94 r733d24 542 542 } 543 543 544 BOOLEAN nrInitChar(coeffs n, void* )544 BOOLEAN nrInitChar(coeffs n, void* p) 545 545 { 546 546 assume( getCoeffType(n) == ID ); 547 548 assume( p == NULL ); p; 549 547 550 n->cfKillChar = ndKillChar; /* dummy */ 548 551 n->ch = 0; … … 578 581 n->nCoeffIsEqual = ndCoeffIsEqual; 579 582 583 n->float_len = SHORT_REAL_LENGTH; 584 n->float_len2 = SHORT_REAL_LENGTH; 585 580 586 // TODO: Any variables? 581 587 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.