Changeset 129 for bdm/stat

Show
Ignore:
Timestamp:
06/25/08 17:14:36 (16 years ago)
Author:
smidl
Message:

preklad na aligatoru

Location:
bdm/stat
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libEF.cpp

    r102 r129  
    5959        for ( i=0; i<rv.count(); i++ ) { 
    6060                GamRNG.setup ( alpha ( i ),beta ( i ) ); 
     61                #pragma omp critical 
    6162                smp ( i ) = GamRNG(); 
    6263        } 
  • bdm/stat/libEF.h

    r124 r129  
    205205        double evalpdflog ( const vec &val ) const  {return lnk;} 
    206206        vec sample() const { 
    207                 vec smp ( rv.count() ); UniRNG.sample_vector ( rv.count(),smp ); 
     207                vec smp ( rv.count() );  
     208                #pragma omp critical 
     209                UniRNG.sample_vector ( rv.count(),smp ); 
    208210                return low+elem_mult(distance,smp); 
    209211        }