Changeset fd0060 in git
- Timestamp:
- Apr 4, 2000, 1:20:05 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 81eeb6c60f1b1a89355bcf927c7864de32b1dacb
- Parents:
- e53604737a862d2d5ca1e9122fa151e45148811a
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mpr_numeric.cc
re536047 rfd0060 3 3 ****************************************/ 4 4 5 /* $Id: mpr_numeric.cc,v 1. 7 1999-12-02 23:03:51 wenkExp $ */5 /* $Id: mpr_numeric.cc,v 1.8 2000-04-04 11:20:04 Singular Exp $ */ 6 6 7 7 /* … … 388 388 // } 389 389 // // warning 390 // W error("rootContainer::getRoot: Wrong index %d, found_roots %s",i,found_roots?"true":"false");390 // Warn("rootContainer::getRoot: Wrong index %d, found_roots %s",i,found_roots?"true":"false"); 391 391 // gmp_complex *tmp= new gmp_complex(); 392 392 // return *tmp; … … 398 398 { 399 399 if (! ((i >= 0) && (i < anz+2) ) ) 400 W errorS("rootContainer::evPointCoord: index out of range");400 WarnS("rootContainer::evPointCoord: index out of range"); 401 401 if (ievpoint == NULL) 402 W errorS("rootContainer::evPointCoord: ievpoint == NULL");402 WarnS("rootContainer::evPointCoord: ievpoint == NULL"); 403 403 404 404 if ( (rt == cspecialmu) && found_roots ) { // FIX ME … … 411 411 else 412 412 { 413 W error("rootContainer::evPointCoord: NULL index %d",i);413 Warn("rootContainer::evPointCoord: NULL index %d",i); 414 414 } 415 415 } 416 416 417 417 // warning 418 W error("rootContainer::evPointCoord: Wrong index %d, found_roots %s",i,found_roots?"true":"false");418 Warn("rootContainer::evPointCoord: Wrong index %d, found_roots %s",i,found_roots?"true":"false"); 419 419 gmp_complex *tmp= new gmp_complex(); 420 420 return *tmp; … … 437 437 438 438 // warning 439 W error(" rootContainer::changeRoots: Wrong index %d, %d",from,to);439 Warn(" rootContainer::changeRoots: Wrong index %d, %d",from,to); 440 440 return false; 441 441 } … … 467 467 if (!found_roots) 468 468 { 469 W errorS("rootContainer::solver: No roots found!");469 WarnS("rootContainer::solver: No roots found!"); 470 470 goto solverend; 471 471 } … … 480 480 if (!found_roots) 481 481 { 482 W errorS("rootContainer::solver: No roots found!");482 WarnS("rootContainer::solver: No roots found!"); 483 483 goto solverend; 484 484 } 485 485 break; 486 486 default: 487 W error("rootContainer::solver: Unsupported polish mode %d! Valid are [0,1,2].",polishmode);487 Warn("rootContainer::solver: Unsupported polish mode %d! Valid are [0,1,2].",polishmode); 488 488 found_roots= false; 489 489 } // switch … … 517 517 mprSTICKYPROT(ST_ROOTS_LGSTEP); 518 518 if ( its > MAXIT ) { // error 519 W errorS("rootContainer::laguer_driver: To many iterations!");519 WarnS("rootContainer::laguer_driver: To many iterations!"); 520 520 ret= false; 521 521 goto theend; … … 548 548 if ( its > MAXIT ) 549 549 { // error 550 W errorS("rootContainer::laguer_driver: To many iterations!");550 WarnS("rootContainer::laguer_driver: To many iterations!"); 551 551 ret= false; 552 552 goto theend; … … 718 718 if ( !found ) 719 719 { 720 W error("rootArranger::arrange: No match? coord %d, root %d.",xkoord,r);720 Warn("rootArranger::arrange: No match? coord %d, root %d.",xkoord,r); 721 721 #ifdef mprDEBUG_PROT 722 W errorS("One of these ...");722 WarnS("One of these ..."); 723 723 for ( rtest= r; rtest < anzr; rtest++ ) 724 724 { … … 729 729 } 730 730 tmp-= (*roots[xk])[rtest] * mu[xkoord]->evPointCoord(xk+1); // xkoord+2 731 W error(" %s",complexToStr(tmp,gmp_output_digits+1),rtest);731 Warn(" %s",complexToStr(tmp,gmp_output_digits+1),rtest); 732 732 } 733 W errorS(" ... must match to one of these:");733 WarnS(" ... must match to one of these:"); 734 734 for ( mtest= 0; mtest < anzr; mtest++ ) 735 735 { 736 W error(" %s",complexToStr((*mu[xkoord])[mtest],gmp_output_digits+1));736 Warn(" %s",complexToStr((*mu[xkoord])[mtest],gmp_output_digits+1)); 737 737 } 738 738 #endif … … 850 850 int i,j; 851 851 // if ( MATROWS( m ) > LiPM_rows || MATCOLS( m ) > LiPM_cols ) { 852 // W errorS("");852 // WarnS(""); 853 853 // return FALSE; 854 854 // } … … 879 879 int i,j; 880 880 // if ( MATROWS( m ) < LiPM_rows-3 || MATCOLS( m ) < LiPM_cols-2 ) { 881 // W errorS("");881 // WarnS(""); 882 882 // return NULL; 883 883 // } … … 939 939 { 940 940 // error: bad input 941 error(W errorS("simplex::compute: Bad input constraint counts!");)941 error(WarnS("simplex::compute: Bad input constraint counts!");) 942 942 icase=-2; 943 943 return; … … 956 956 { 957 957 // error: bad input 958 error(W errorS("simplex::compute: Bad input tableau!");)959 error(W error("simplex::compute: in input Matrix row %d, column 1, value %f",i+1,LiPM[i+1][1]);)958 error(WarnS("simplex::compute: Bad input tableau!");) 959 error(Warn("simplex::compute: in input Matrix row %d, column 1, value %f",i+1,LiPM[i+1][1]);) 960 960 icase=-2; 961 961 // free mem l1,l2,l3; -
Singular/ring.h
re536047 rfd0060 7 7 * ABSTRACT - the interpreter related ring operations 8 8 */ 9 /* $Id: ring.h,v 1.4 6 2000-01-26 18:10:54Singular Exp $ */9 /* $Id: ring.h,v 1.47 2000-04-04 11:20:05 Singular Exp $ */ 10 10 11 11 /* includes */ … … 121 121 122 122 inline BOOLEAN rField_has_simple_inverse(ring r=currRing) 123 { return (r->ch>1) || (r->ch== -1); } /* Z/p, GF(p,n), R, long_R, long_C*/ 123 /* { return (r->ch>1) || (r->ch== -1); } /* Z/p, GF(p,n), R, long_R, long_C*/ 124 { return (r->ch>1) || ((r->ch== -1) && (r->ch_flags < 10)); } /* Z/p, GF(p,n), R, long_R, long_C*/ 124 125 125 126 inline BOOLEAN rField_has_simple_Alloc(ring r=currRing)
Note: See TracChangeset
for help on using the changeset viewer.