Changeset 2563 for trunk/sources/ALGLIB/blas.cs
- Timestamp:
- 12/17/09 17:05:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/ALGLIB/blas.cs
r2430 r2563 51 51 for(ix=i1; ix<=i2; ix++) 52 52 { 53 if( x[ix]!=0)53 if( (double)(x[ix])!=(double)(0) ) 54 54 { 55 55 absxi = Math.Abs(x[ix]); 56 if( scl<absxi)56 if( (double)(scl)<(double)(absxi) ) 57 57 { 58 58 ssq = 1+ssq*AP.Math.Sqr(scl/absxi); … … 82 82 for(i=i1+1; i<=i2; i++) 83 83 { 84 if( Math.Abs(x[i])>Math.Abs(x[result]) )84 if( (double)(Math.Abs(x[i]))>(double)(Math.Abs(x[result])) ) 85 85 { 86 86 result = i; … … 104 104 for(i=i1+1; i<=i2; i++) 105 105 { 106 if( Math.Abs(x[i,j])>Math.Abs(x[result,j]) )106 if( (double)(Math.Abs(x[i,j]))>(double)(Math.Abs(x[result,j])) ) 107 107 { 108 108 result = i; … … 126 126 for(j=j1+1; j<=j2; j++) 127 127 { 128 if( Math.Abs(x[i,j])>Math.Abs(x[i,result]) )128 if( (double)(Math.Abs(x[i,j]))>(double)(Math.Abs(x[i,result])) ) 129 129 { 130 130 result = j; … … 316 316 // beta*y 317 317 // 318 if( beta==0)318 if( (double)(beta)==(double)(0) ) 319 319 { 320 320 for(i=iy1; i<=iy2; i++) … … 361 361 // beta*y 362 362 // 363 if( beta==0)363 if( (double)(beta)==(double)(0) ) 364 364 { 365 365 for(i=iy1; i<=iy2; i++) … … 405 405 w = Math.Max(xabs, yabs); 406 406 z = Math.Min(xabs, yabs); 407 if( z==0)407 if( (double)(z)==(double)(0) ) 408 408 { 409 409 result = w; … … 497 497 // Prepare C 498 498 // 499 if( beta==0)499 if( (double)(beta)==(double)(0) ) 500 500 { 501 501 for(i=ci1; i<=ci2; i++)
Note: See TracChangeset
for help on using the changeset viewer.