Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/09 17:05:22 (15 years ago)
Author:
gkronber
Message:

Updated ALGLIB to latest version. #751 (Plugin for for data-modeling with ANN (integrated into CEDMA))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/ALGLIB/reflections.cs

    r2430 r2563  
    9898            }
    9999            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) )
    103103                {
    104104                    s = AP.Math.MinRealNumber/AP.Math.MachineEpsilon;
     
    112112                else
    113113                {
    114                     if( mx>=AP.Math.MaxRealNumber*AP.Math.MachineEpsilon )
     114                    if( (double)(mx)>=(double)(AP.Math.MaxRealNumber*AP.Math.MachineEpsilon) )
    115115                    {
    116116                        s = AP.Math.MaxRealNumber*AP.Math.MachineEpsilon;
     
    130130            alpha = x[1];
    131131            xnorm = 0;
    132             if( mx!=0 )
     132            if( (double)(mx)!=(double)(0) )
    133133            {
    134134                for(j=2; j<=n; j++)
     
    138138                xnorm = Math.Sqrt(xnorm)*mx;
    139139            }
    140             if( xnorm==0 )
     140            if( (double)(xnorm)==(double)(0) )
    141141            {
    142142               
     
    154154            mx = Math.Max(Math.Abs(alpha), Math.Abs(xnorm));
    155155            beta = -(mx*Math.Sqrt(AP.Math.Sqr(alpha/mx)+AP.Math.Sqr(xnorm/mx)));
    156             if( alpha<0 )
     156            if( (double)(alpha)<(double)(0) )
    157157            {
    158158                beta = -beta;
     
    215215            int i_ = 0;
    216216
    217             if( tau==0 | n1>n2 | m1>m2 )
     217            if( (double)(tau)==(double)(0) | n1>n2 | m1>m2 )
    218218            {
    219219                return;
     
    294294            int i1_ = 0;
    295295
    296             if( tau==0 | n1>n2 | m1>m2 )
     296            if( (double)(tau)==(double)(0) | n1>n2 | m1>m2 )
    297297            {
    298298                return;
Note: See TracChangeset for help on using the changeset viewer.