Vowpal Wabbit
Static Public Member Functions | List of all members
set_rand_wrapper< T > Class Template Reference

Static Public Member Functions

static void func (weight &w, uint32_t &stride, uint64_t index)
 

Detailed Description

template<class T>
class set_rand_wrapper< T >

Definition at line 238 of file gd_mf.cc.

Member Function Documentation

◆ func()

template<class T >
static void set_rand_wrapper< T >::func ( weight w,
uint32_t &  stride,
uint64_t  index 
)
inlinestatic

Definition at line 241 of file gd_mf.cc.

References merand48().

242  {
243  weight* pw = &w;
244  for (size_t i = 0; i != stride; ++i, ++index) pw[i] = (float)(0.1 * merand48(index));
245  }
float merand48(uint64_t &initial)
Definition: rand48.cc:16
float weight

The documentation for this class was generated from the following file: