Classes | |
class | op_rand |
'generate matrix with random values' operation More... | |
Functions | |
template<typename eT > | |
static void | op_rand::direct_rand (eT *x, const u32 n_elem) |
TODO: optionally use the Marsenne-Twister random number generator (see Boost). | |
template<typename T > | |
static void | op_rand::direct_rand (std::complex< T > *x, const u32 n_elem) |
template<typename T1 > | |
static void | op_rand::apply (Mat< typename T1::elem_type > &out, const Op< T1, op_rand > &in) |
template<typename eT > | |
static void | op_rand::apply (Cube< eT > &out, const OpCube< Cube< eT >, op_rand > &in) |
void op_rand::direct_rand | ( | eT * | x, | |
const u32 | n_elem | |||
) | [inline, static, private, inherited] |
TODO: optionally use the Marsenne-Twister random number generator (see Boost).
Definition at line 24 of file op_rand_meat.hpp.
References rand().
Referenced by apply().
void op_rand::direct_rand | ( | std::complex< T > * | x, | |
const u32 | n_elem | |||
) | [inline, static, private, inherited] |
Definition at line 41 of file op_rand_meat.hpp.
References rand().
void op_rand::apply | ( | Mat< typename T1::elem_type > & | out, | |
const Op< T1, op_rand > & | in | |||
) | [inline, static, inherited] |
Definition at line 61 of file op_rand_meat.hpp.
References Op< T1, op_type >::aux_u32_a, Op< T1, op_type >::aux_u32_b, direct_rand(), Mat< eT >::memptr(), Mat< eT >::n_elem, and Mat< eT >::set_size().
void op_rand::apply | ( | Cube< eT > & | out, | |
const OpCube< Cube< eT >, op_rand > & | in | |||
) | [inline, static, inherited] |
Definition at line 75 of file op_rand_meat.hpp.
References direct_rand(), Cube< eT >::memptr(), Cube< eT >::n_elem, and Cube< eT >::set_size().