Changeset 170 for bdm/math

Show
Ignore:
Timestamp:
09/24/08 13:07:50 (16 years ago)
Author:
smidl
Message:

Mixtures of EF and related changes to libEF and BM

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/math/libDC.cpp

    r168 r170  
    157157        double x = 0.0, sum; 
    158158        int i,j; 
    159         vec s(v.length()); 
    160         vec S=L*v; 
    161159 
    162160        for ( i=0; i<D.length(); i++ ) { //rows of L 
     
    164162                for ( j=0; j<=i; j++ ){sum+=L( i,j )*v( j );} 
    165163                x +=D( i )*sum*sum; 
    166                 s(i)=sum; 
    167164        }; 
    168165        return x;