Changeset 2563 for trunk/sources/ALGLIB/reflections.cs
- Timestamp:
- 12/17/09 17:05:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/ALGLIB/reflections.cs
r2430 r2563 98 98 } 99 99 s = 1; 100 if( mx!=0)101 { 102 if( mx<=AP.Math.MinRealNumber/AP.Math.MachineEpsilon)100 if( (double)(mx)!=(double)(0) ) 101 { 102 if( (double)(mx)<=(double)(AP.Math.MinRealNumber/AP.Math.MachineEpsilon) ) 103 103 { 104 104 s = AP.Math.MinRealNumber/AP.Math.MachineEpsilon; … … 112 112 else 113 113 { 114 if( mx>=AP.Math.MaxRealNumber*AP.Math.MachineEpsilon)114 if( (double)(mx)>=(double)(AP.Math.MaxRealNumber*AP.Math.MachineEpsilon) ) 115 115 { 116 116 s = AP.Math.MaxRealNumber*AP.Math.MachineEpsilon; … … 130 130 alpha = x[1]; 131 131 xnorm = 0; 132 if( mx!=0)132 if( (double)(mx)!=(double)(0) ) 133 133 { 134 134 for(j=2; j<=n; j++) … … 138 138 xnorm = Math.Sqrt(xnorm)*mx; 139 139 } 140 if( xnorm==0)140 if( (double)(xnorm)==(double)(0) ) 141 141 { 142 142 … … 154 154 mx = Math.Max(Math.Abs(alpha), Math.Abs(xnorm)); 155 155 beta = -(mx*Math.Sqrt(AP.Math.Sqr(alpha/mx)+AP.Math.Sqr(xnorm/mx))); 156 if( alpha<0)156 if( (double)(alpha)<(double)(0) ) 157 157 { 158 158 beta = -beta; … … 215 215 int i_ = 0; 216 216 217 if( tau==0| n1>n2 | m1>m2 )217 if( (double)(tau)==(double)(0) | n1>n2 | m1>m2 ) 218 218 { 219 219 return; … … 294 294 int i1_ = 0; 295 295 296 if( tau==0| n1>n2 | m1>m2 )296 if( (double)(tau)==(double)(0) | n1>n2 | m1>m2 ) 297 297 { 298 298 return;
Note: See TracChangeset
for help on using the changeset viewer.